17.12.2010, 16:05
Hi,i've this cmd
I need to add the message to all.
Ex: Admin ADMINAME has exploded PLAYERNAME
How?
Код:
dcmd_explode(playerid, params[]) { new id; if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_RED, "SYNTAX: /explode [nick/id]"); if(id == INVALID_PLAYER_ID || !IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_RED, "ERROR: That player is not connected!"); new Float:Pos[3]; GetPlayerPos(id, Pos[0], Pos[1], Pos[2]); CreateExplosion(Pos[0], Pos[1], Pos[2], 0, 10.0); return 1; }
Ex: Admin ADMINAME has exploded PLAYERNAME
How?