Need Help With Dialogs
#5

Код:
if(dialogid == 2)
{
	if(response == 1)
	{
		if(GetPVarInt(playerid,"RulesAccepted")!=1)
		{
			SetPVarInt(playerid,"RulesAccepted",1);
			SetPlayerScore(playerid, GetPlayerScore(playerid) + 5);
			GivePlayerMoney(playerid, 50000);
			SendClientMessage(playerid, COLOR_GREEN, "You Accept The Rules You Recieve $500000 + 5 Score Points");
		}
		else
		{
			SendClientMessage(playerid, COLOR_RED, "You Already Accepted The Rules. You DONT Recieve $500000 + 5 Score Points Again!");
		}
	}
	else
	{
		SendClientMessage(playerid, COLOR_RED, "You Ignore The Rules");
		SendClientMessage(playerid, COLOR_RED, "You Have Been Kicked!, Reason : Ignoring The Rules");
		Kick(playerid);
	}
	return 1;
}
i dont know if you like PVars, but it doesnt need any variables declared. dont forget to save the data aswell...
Reply


Messages In This Thread
Need Help With Dialogs - by lyrics - 07.08.2011, 10:09
Re: Need Help With Dialogs - by emokidx - 07.08.2011, 12:52
Re: Need Help With Dialogs - by lyrics - 08.08.2011, 10:31
Re: Need Help With Dialogs - by Rafa - 08.08.2011, 10:35
Re: Need Help With Dialogs - by Babul - 08.08.2011, 10:38
Re: Need Help With Dialogs - by lyrics - 08.08.2011, 10:47
Re: Need Help With Dialogs - by [MG]Dimi - 08.08.2011, 10:52
Re: Need Help With Dialogs - by lyrics - 08.08.2011, 10:56
Re: Need Help With Dialogs - by lyrics - 08.08.2011, 10:58
Re: Need Help With Dialogs - by lyrics - 08.08.2011, 11:21

Forum Jump:


Users browsing this thread: 1 Guest(s)