Help me please
#1

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
Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)