Picking up pickups
#2

pawn Код:
#define GetPlayerDialog(%0) PlayerDialog[%0]

new PlayerDialog[MAX_PLAYERS];

ShowPlayerDialogEx(playerid, dialogid, style, caption[], info[], button1[], button2[])
{
    PlayerDialog[playerid] = dialogid;
    return ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
}

public OnPlayerPickUpPickup(playreid, pickupid)
{
    if(pickupid == PICKUP ID HERE && GetPlayerDialog(playerid) != DIALOG ID HERE)
    {
        ShowPlayerDialogEx(playerid, dialogid, style, caption[], info[], button1[], button2[]);
    }
}
Reply


Messages In This Thread
Picking up pickups - by cloudysky - 17.07.2011, 14:15
Re: Picking up pickups - by CyNiC - 17.07.2011, 16:19

Forum Jump:


Users browsing this thread: 2 Guest(s)