Fighting styles aren't saving?
#1

This is my fighting style portion.

Код:
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);
			}
		}
	}
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.
Reply


Messages In This Thread
Fighting styles aren't saving? - by Mr. Despair - 13.08.2010, 15:26
Re: Fighting styles aren't saving? - by Las Venturas CNR - 13.08.2010, 16:07
Re: Fighting styles aren't saving? - by Mr. Despair - 13.08.2010, 19:03
Re: Fighting styles aren't saving? - by [L3th4l] - 13.08.2010, 19:05
Re: Fighting styles aren't saving? - by Claude - 13.08.2010, 19:15
Re: Fighting styles aren't saving? - by Mr. Despair - 13.08.2010, 19:51
Re: Fighting styles aren't saving? - by Claude - 13.08.2010, 19:54

Forum Jump:


Users browsing this thread: 2 Guest(s)