07.08.2011, 10:09
Hi Guys i need help on my dialog
I create a Rule Dialog + OnDialogResponse
when i press accept it gives me 500000 + 5 score
Now I want when i type /rules again and click accept
I want to have a return message like "You Already Accept The Rules!" + That will not give 500000$ And 5 Score
Heres my code OnDialogResponse:
Please Help!
I create a Rule Dialog + OnDialogResponse
when i press accept it gives me 500000 + 5 score
Now I want when i type /rules again and click accept
I want to have a return message like "You Already Accept The Rules!" + That will not give 500000$ And 5 Score
Heres my code OnDialogResponse:
Код:
if(dialogid == 2) { if(response == 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 Ignore The Rules"); SendClientMessage(playerid, COLOR_RED, "You Have Been Kicked!, Reason : Ignoring The Rules"); Kick(playerid); } return 1; }