23.07.2013, 03:39
Thanks for Ignore my post, anyway:
But, your timer stops after 500ms...
Adjust it..
Quote:
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 ![]() GetPlayerPos( playerid, x, y, 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; } |
Adjust it..