23.01.2011, 15:22
Ok,in my last topic i've fixed dialogs problem,but now i've another.
The problem is: When i click on this and i've -90 score,i cant use it (it's normal),but it closes the dialog.
How to,when a player cant use this dialog,it will return to dialog menu?
pawn Код:
if(listitem == 1) // Suck
{
if(GetPlayerScore(playerid) < 90) //if dont have 90 score
{
SendClientMessage(playerid,0xFF0000AA,"90 score needed.");
return 0;
}
else if(GetPlayerScore(playerid) > 90) //if he have
{
SetPlayerArmour(playerid, 100.0);
GivePlayerWeapon(playerid, 35, 5);
}
}
How to,when a player cant use this dialog,it will return to dialog menu?