PDA

View Full Version : Check If Player's Score?


[UFM]Ryder
17/05/2013, 04:10 PM
Hello
My server has a Neon System i want that
when player types /neon
It first check's that if player has more than 500 scores
Then it will open the neon dialog
If the player has less than 500 scores
It just says
You need to have at least 500 scores to use neon System

GreTex
17/05/2013, 04:13 PM
Create a timer to check if player score is or greater than 500

[UFM]Ryder
17/05/2013, 04:16 PM
How to Do THat?
Someone PLeasE Help Me :(

Littlehelper
17/05/2013, 04:21 PM
Create a timer to check if player score is or greater than 500
Why?...
There's no need for a timer...
OT: here is an EXAMPLE.

Command:neons(playeird,params[]) {
if(GetPlayerScore(playerid) >= 500) return SendClientMessage(playerid, -1, "You don't have 500 score bro");
// showing dialog here....

Gamer_007
17/05/2013, 04:32 PM
Command:neons(playeird,params[]) {
if(GetPlayerScore(playerid) < 500) return SendClientMessage(playerid, -1, "You don't have 500 score bro");
// showing dialog here....

Little helper u did that if player score is less than 500 then only it will show the Dialog.I've corrected it :)