Picking up pickups
#1

I know how to script it but there is a problem. Every two seconds the player re picks up the pickup, so the dialog resets to the original.

I hope you know what I mean, but this is really annoying. Is there anyway to stop it without making the pickup disappear?
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)