/explode command?
#3

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;
}
Reply


Messages In This Thread
/explode command? - by Face9000 - 07.09.2010, 09:25
Re: /explode command? - by playbox12 - 07.09.2010, 09:33
Re: /explode command? - by iggy1 - 07.09.2010, 09:34
Re: /explode command? - by Face9000 - 07.09.2010, 09:40
Re: /explode command? - by iggy1 - 07.09.2010, 09:43
Re: /explode command? - by Sparnex - 07.09.2010, 09:45

Forum Jump:


Users browsing this thread: 1 Guest(s)