26.01.2013, 15:35
pawn Код:
CMD:explode(playerid, params[])
{
new string[64];
if(pInfo[playerid][pAdmin] < 2) return SCM(playerid, COLOR_RED, "You are not admin.");
if(sscanf(params, "i", params[0])) return SCM(playerid, -1, "{32CD32}Use:{FFFFFF} /explode (playerid).");
if(!IsPlayerConnected(params[0])) return SCM(playerid, COLOR_RED, "Player is not connected.");
new Float:X, Float:Y, Float:Z;
GetPlayerPos(params[0], X, Y, Z);
CreateExplosion(X, Y, Z, 7, 10);
format(string, sizeof(string), "Admin {00BFFF}%s (%d) {FFFFFF}has exploded you.", GetName(playerid), playerid);
SendClientMessage(params[0], -1, string);
return 1;
}