13.08.2010, 15:26
This is my fighting style portion.
I want to make it so when you learn one of these it saves when you log out because players will learn the style and lose it upon logout. Also, how would I make each fighting style cost money? Thanks in advance.
Код:
if(dialogid == FIGHTMENU) { if(response) { if(listitem == 0) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING); SendClientMessage(playerid, COLOR_GREEN, " You now know how to box !"); } if(listitem == 1) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW); SendClientMessage(playerid, COLOR_GREEN, " You now know how to fight better !"); } if(listitem == 2) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD); SendClientMessage(playerid, COLOR_GREEN, " You now know how to fight better !"); } if(listitem == 3) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU); SendClientMessage(playerid, COLOR_GREEN, " You now know how to fight better !"); } if(listitem == 4) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK); SendClientMessage(playerid, COLOR_GREEN, " You now know how to fight better !"); } if(listitem == 5) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL); } } }