Setting Fighting Style.
#1

This is the command and there are no warnings or errors but when I get in game and do the command it doesn't seem to set the players fighting style.
pawn Код:
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;
}
Reply


Messages In This Thread
Setting Fighting Style. - by nogh445 - 28.08.2012, 19:22
Re: Setting Fighting Style. - by ThePhenix - 28.08.2012, 19:25
Re: Setting Fighting Style. - by RenSoprano - 28.08.2012, 19:30

Forum Jump:


Users browsing this thread: 1 Guest(s)