Help:/burn id
#1

Hello! How to make /burn id?
It looks Like in GTA SA, When Player Burns, then lower HP to 0?!
Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)