GetPlayerFightingStyle want words,not numbers
#3

pawn Код:
stock GetFightStyleName(styleid)
{
    new sname[12];
    sname = "Unknown";
    switch(styleid)
    {
        case 4: sname = "Normal";
        case 5: sname = "Boxing";
        case 6: sname = "Kung Fu";
        case 7: sname = "Knee Head";
        case 15: sname = "Grabkick";
        case 26: sname = "Elbow";
    }
    return sname;
}
pawn Код:
new string[64];
format( string, sizeof(string), "Your fighting style: %s", GetFightStyleName( GetPlayerFightingStyle(playerid) ) );
SendClientMessage(playerid, -1, string);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)