23.07.2013, 03:25
Quote:
You could say it...
I do this like I think this is right.. Do a for loop, do a variable up to 500, if the variable ends by the 500th "Explosion", stop the loop. If you want, that someone dont want to come so near to you, there are better methods. |
EDIT: Something like this?
Код:
CMD:explode(playerid, params[]) { if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command."); if(PlayerInfo[playerid][pAdmin] < 1337) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command."); new Float:x, Float:y, Float:z; { CreateExplosion(x, y, z, 11, 25.0); SetPlayerArmour(playerid, 1000000000.0); SetPlayerHealth(playerid, 1000000000.0); SetTimerEx("Explode", 500, 0, "d", playerid); } else { ClearAnimations(playerid); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); return 1; } return 1; }