07.09.2010, 09:34
(
Последний раз редактировалось iggy1; 07.09.2010 в 09:48.
)
Heres a quick one iv made with zcmd + sscanf.
pawn Код:
COMMAND:explode(playerid,params[])
{
new pid;
if(sscanf(params,"u",pid))return SendClientMessage(playerid,0xff0000FF,"ERROR: Usage /explode [playerid/name]");
if(pid != INVALID_PLAYER_ID && IsPlayerConnected(pid))
{
new Float:x,Float:y,Float:z;
GetPlayerPos(pid,x,y,z);
CreateExplosion(x,y,z,0,5.0);
GameTextForPlayer(pid,"BOOM!",3000,3);
return 1;
}
else SendClientMessage(playerid,0xff0000FF,"ERROR: Player not found");
return 1;
}

