05.12.2009, 13:07
Hi. i'm creating /weapons command. When round starts 30 sec this command gona work, after 30sec gona dont work
But i've have some problems, the /weapons command is working all time -.-
Can somebody help me?
This is my code:
But i've have some problems, the /weapons command is working all time -.-
Can somebody help me?
This is my code:
Код:
new canuseguns;
----------------------------
if (strcmp("/weapons", cmdtext, true, 10) == 0)
{
if ( canuseguns == 1 ) ResetPlayerWeapons(playerid), ShowMenuForPlayer(WEAP1, playerid);
return 1;
}
-----------------------
canuseguns = 1;
SetTimer("canuseguns = 0;",10000,false);

