22.08.2011, 12:41
if i get it correct, you dont want the main menu re-opening while youre standing on the pickup (coz it gets picked up each second).
you have set the SetPVarInt(playerid,"DialogShown",1); already, now you need to add the check if that variable is NOT set before opening the dialog:
dont forget to
when you closed the dialog (esc) or chosed an entry successfully, so the main menu could pop up again..
you have set the SetPVarInt(playerid,"DialogShown",1); already, now you need to add the check if that variable is NOT set before opening the dialog:
Code:
if(GetPVarInt(playerid,"DialogShown")==0){_open_dialog_now_}
Code:
DeletePVar(playerid,"DialogShown");