Respects points for each level
#4

Quote:
Originally Posted by VilleValo
Посмотреть сообщение
Where i take them ?
You must create a variable first.

Example:

pawn Код:
new YourVariable[MAX_PLAYERS]; //put it at the top of the script (Below the includes)
you've to make

pawn Код:
YourVariable[playerid] = 1; //set's YourVariable to 1.
when player register

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;
}
Reply


Messages In This Thread
Respects points for each level - by VilleValo - 20.11.2012, 09:16
Re: Respects points for each level - by [HK]Ryder[AN] - 20.11.2012, 09:20
Re: Respects points for each level - by VilleValo - 20.11.2012, 09:23
Re: Respects points for each level - by JaKe Elite - 20.11.2012, 09:25
Re: Respects points for each level - by gtakillerIV - 20.11.2012, 09:31
Re: Respects points for each level - by VilleValo - 20.11.2012, 16:34

Forum Jump:


Users browsing this thread: 2 Guest(s)