SA-MP Forums Archive
help how to create burn command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help how to create burn command (/showthread.php?tid=512496)



help how to create burn command - Stealthshooter - 11.05.2014

how to create burn command?


Re: help how to create burn command - Xtreme Brotherz - 11.05.2014

Код:
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;
}



Re: help how to create burn command - Beckett - 11.05.2014

Click.