Posts: 378
Threads: 29
Joined: Aug 2015
Reputation:
0
I want to know how to make a command for specific score+
example:
command is /healme and i want players with 100+ score to use it
Thanks in advance
Posts: 438
Threads: 54
Joined: Mar 2013
Here you go.
pawn Код:
CMD:healme(playerid, params[])
{
if(GetPlayerScore(playerid) <= 100) // If the player's score is lower than 100, then they can't use this command.
{
SetPlayerHealth(playerid, 100); // You can change 100 to any health that you want.
}
return 1;
}
Posts: 105
Threads: 31
Joined: Jun 2015
Reputation:
0
ChandraLouis That's just like the one i did!
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
X337's code is correct, the others only allows the player to heal if he has 100 or less score.
Posts: 1,276
Threads: 6
Joined: Aug 2014
< Less than
<= Less than or equal to
> bigger than
>= bigger than or equal to