Код:
COMMAND:burn(playerid, params[])
{
if(sscanf(params, "u", ID)) return SendClientMessage(playerid, grey,"USAGE: /burn [playerid / Partofname]");
GetPlayerName(playerid,Nam,sizeof(Nam));
GetPlayerName(ID,pname,sizeof(pname));
if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, 0xFF0000FF, "That user is not connected.");
format(str, sizeof(str),"You had burned %s!",pname);
SendClientMessage(playerid, 0xFF9900AA,str);
format(str, sizeof(str),"Administrator %s has burned you!",Nam);
SendClientMessage(ID, 0xFF9900AA,str);
new Float:burnx, Float:burny, Float:burnz;
GetPlayerPos(ID,burnx,burny,burnz);
CreateExplosion(burnx,burny,burnz,0,10.0);
}
return 1;
}