Making shop with pickup icon and dialog text, HELP!
#4

Here you have a basic code:
pawn Код:
new shop_pickup;

public OnGameModeInit()
{
    shop_pickup = CreatePickup(..........................);
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == shop_pickup)
    {
        ShowPlayerDialog(.............................);
    }
    return 1;
}

//And learn how to use OnDialogResponse.
It's not hard, good luck. I don't have time to make it for you, sorry.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)