/bomb can use it just 3 time [How]
#3

Make a variable and add it to a command ex:
Код:
new Variable[MAX_PLAYERS];
Код:
if (strcmp("/cmd", cmdtext, true, 10) == 0)
{
if(Variable[playerid] == 3)
{
SendClientMessage(playerid, -1, "You can use this command just 3 times");
}
//do something
Variable[playerid] += 1;
}
This is just an example.
Reply


Messages In This Thread
/bomb can use it just 3 time [How] - by [D]ry[D]esert - 09.05.2012, 12:31
Re: /bomb can use it just 3 time [How] - by [D]ry[D]esert - 09.05.2012, 14:02
Re: /bomb can use it just 3 time [How] - by TzAkS. - 09.05.2012, 14:06
Re: /bomb can use it just 3 time [How] - by Skaizo - 09.05.2012, 14:19
Re: /bomb can use it just 3 time [How] - by [D]ry[D]esert - 09.05.2012, 14:48
Re: /bomb can use it just 3 time [How] - by john_jenkins - 09.05.2012, 14:55
Re: /bomb can use it just 3 time [How] - by DamienWalter - 15.05.2012, 12:31

Forum Jump:


Users browsing this thread: 1 Guest(s)