03.11.2009, 20:49
Код:
public SetPlayerFightStyle(playerid) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pFightStyle] == 1)//Kick_Boxinng { SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK); return 1; } else if(PlayerInfo[playerid][pFightStyle] == 2)//Kung_Fu { SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU); return 1; } else if(PlayerInfo[playerid][pFightStyle] == 3)//Boxing { SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING); return 1; } else if(PlayerInfo[playerid][pFightStyle] == 4)//Street_Fight { SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL); return 1; } // } delete this ligne } return 1; }