SA-MP Forums Archive
Help me please - 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 me please (/showthread.php?tid=420115)



Help me please - Mecie_Jam - 03.03.2013

Hello I would like u to help me with /setfightstyles


Код:
CMD:setfightstyle(playerid, params[])
{
    new targetid, style, string[128];
    if(PlayerInfo[playerid][Admin] >=3)
    {
        if(sscanf(params, "ui", targetid, style)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /setfightstyle [id] [styleid]");
        if( targetid != INVALID_PLAYER_ID )
        {
            SetPlayerFightingStyle(targetid, style);
            format(string, sizeof(string),"Administrator %s has set your fighting style to id %d",pName(playerid), style);
            SendClientMessage(targetid,COLOR_RED,string);
            format(string, sizeof(string),"You have set %s's fighting style to id %d",pName(targetid), style);
            SendClientMessage(playerid,COLOR_RED,string);
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "Only certan levels of Administration have access to this command.");
    }
    return 1;
}
Could someone to add me the fight styles ID's etc


Re: Help me please - mittukuttan - 03.03.2013

https://sampwiki.blast.hk/wiki/Fightingstyles