help how to create burn command
#1

how to create burn command?
Reply
#2

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

Click.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)