Hello,
When using /explode on a player, they don't die, they just loose about 70 percent of their health. How can I ensure they die?
Thanks.
When using /explode on a player, they don't die, they just loose about 70 percent of their health. How can I ensure they die?
Thanks.
Quote:
CMD:explode(playerid,params[]) { if(PlayerInfo[playerid][Level] < 3) return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command"); new player1, string[128], reason[64]; if(sscanf(params, "uS(no reason given)[64]", player1, reason)) return SendClientMessage(playerid, red, "USAGE: /explode [playerid] [reason]"); if(player1 == INVALID_PLAYER_ID) return SendClientMessage(playerid, red, "ERROR: Player is not connected"); if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin"); CMDMessageToAdmins(playerid, "EXPLODE"); new Float:burnx, Float:burny, Float:burnz; GetPlayerPos(player1,burnx, burny, burnz); CreateExplosion(burnx, burny , burnz, 7,10.0); format(string, sizeof(string), "You have been exploded by Administrator %s [reason: %s]", pName(playerid), reason); SendClientMessage(player1, red, string); format(string, sizeof(string), "You have exploded %s [reason: %s]", pName(player1), reason); SendClientMessage(playerid, yellow, string); return 1; } |