20.08.2012, 17:22
Try this:
Im sorry if theres any mistake because i created this through mobile.
pawn Код:
CMD:explode(playerid, params[])
{
new targetid;
if(sscanf(params,"u", targetid)) return SendClientMessage(playerid, 0xFFFFFFF,"[ERROR] Usage:/explode [PlayerID]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFF,"Player isnt connected!");
new Float:x,Float:y,Float:z;
GetPlayerPos(targetid,x,y,z);
CreateExplosion(x,y,z,12,10.0);
return 1;
}