OnPlayerPickup
#3

You have to make this:

Quote:

new ShowDIalog[MAX_PLAYERS]; // add this somewhere in GameMode

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Burger && ShowDialog[playerid] == 0)
{
ShowDialog[playerid] = 1;
ShowPlayerDialog(playerid,DIALOG_Burger,DIALOG_STY LE_LIST,..);
}
return 1;
}

and after when he close the dialog make it ShowDialog[playerid] = 0; again...
if you dont know how to do this, send me the code in pm if you want to help you to make..(remember i want the code that you have add on OnPlayerDialogResponse..)
Reply


Messages In This Thread
OnPlayerPickup - by Ugaustin - 04.07.2015, 20:53
Re: OnPlayerPickup - by Blademaster680 - 04.07.2015, 21:44
Re: OnPlayerPickup - by kyriakos587 - 04.07.2015, 23:41

Forum Jump:


Users browsing this thread: 2 Guest(s)