10.10.2016, 15:43
Yo. I try put timer into my command bat i get bugged when i type that command its all time says "You must wait 2minutes, bat i killed timer and the end" and same shit all time. When i try different put timer, then its work bat then my timer doesn't work
so can you guys help me with this?
Now i deleted me timer and give it without.
![Cheesy](images/smilies/biggrin.png)
Код:
CMD:fr( playerid, params[] ) { new rand = random( 10 ); new id,Float:x,Float:y,Float:z; switch( rand ) { case 1: // if rand is between 0 and 2 then run the code here { GivePlayerWeapon(playerid, 31, 9999); SendClientMessage(playerid,-1,""chat""COL_RED" You got ultimate M4 weapon ammo!"); } case 2: // if rand is between 3 and 5 then run the code here { SetPlayerSkin(playerid, 123); SendClientMessage(playerid,-1,""chat""COL_RED" You're Thug now!"); } case 3: // if rand is between 6 and 8 then run the code here { SetPlayerHealth(playerid, 10); SendClientMessage(playerid,-1,""chat""COL_RED" UPS!"); } case 4: // if rand is between 9 and 11 then run the code here { GetPlayerPos(id,x,y,z); SetPlayerPos(id,x,y,z+10); SendClientMessage(playerid,-1,""chat""COL_RED" UPS!"); } case 5: // if rand is between 9 and 11 then run the code here { SetPlayerScore(playerid, GetPlayerScore(playerid) + 100); SendClientMessage(playerid,-1,""chat""COL_RED" You got some EXP!"); } case 6: // if rand is between 9 and 11 then run the code here { SetPlayerColor(playerid,0xCC0000); SendClientMessage(playerid,-1,""chat""COL_RED" You're unique now!"); } case 7: { SendClientMessage(playerid,-1,""chat""COL_RED" Nothing happened!"); } case 8: { SendClientMessage(playerid,-1,""chat""COL_RED" Nothing happened!"); } case 9: // if rand is between 6 and 8 then run the code here { SetPlayerArmour(playerid, 95); SendClientMessage(playerid,-1,""chat""COL_RED" You got Armor"); } } return 1; }