Specific FightingStyle for specific skin id's
#1

It is possible to set for example boxing fight-style for specific skin id?

Thanks!
Reply
#2

Nope. It's not possible
Reply
#3

PHP код:
if (strcmp(cmdtext"/boxing"true) == 0)
    if(
GetPlayerSkin(playerid) == SKIN_ID_YOU_WANT_TO_USE)
    {
            
SetPlayerFightingStyle (playeridFIGHT_STYLE_BOXING);
    }
    return 
1;

Should this work?
Or on player spawn get player skin and setplayerfighting sytle
Reply
#4

Of course you can!

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    switch (GetPlayerSkin(playerid))
    {
        case 2: SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
        case 270: SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
        default: SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
    }
    return 1;
}
An example above.

If the skin is 2, then it will set the fighting style to kneehead.
Else if the skin is 270 (Ryder's I think), then it will set the fighting style to boxing.
Else it will set the fighting style to kung fu.

Quote:
Originally Posted by Hammad97
Посмотреть сообщение
Nope. It's not possible
so sure..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)