20.11.2012, 09:25
You must create a variable first.
Example:
you've to make
when player register
then on a command (Example only) do something like this
Example:
pawn Код:
new YourVariable[MAX_PLAYERS]; //put it at the top of the script (Below the includes)
pawn Код:
YourVariable[playerid] = 1; //set's YourVariable to 1.
then on a command (Example only) do something like this
pawn Код:
CMD:buyit(playerid, params[])
{
if(YourVariable[playerid] <= 8) return SendClientMessage(playerid, -1, "Error: Not enough points to use the command"); //checks if YourVariable is less than 8, If it is return SendClientMessage is called.
return 1;
}