27.07.2011, 21:36
Right so i have this command:
But now what i want to do is make it so you have to wait 2 mins before you can re-do and when u try to re-do it should say "You must wait before you can do that again!"
Код:
if(!strcmp("/rob",cmdtext)) { if(IsPlayerInRangeOfPoint(playerid, 500, -23.50, -55.64, 1003.55)) { new string[120], playerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, playerName, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Is Robbing, And is now wanted!", playerName); SendClientMessageToAll(0xFFFFFFFF, string); SetPlayerWantedLevel(playerid, 6); new money = 500 + random(50000); GivePlayerMoney(playerid, money); } return 1; }