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

Quote:
Originally Posted by irinel1996
Посмотреть сообщение
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.
there goes pickup model id and coords, right?
pawn Код:
shop_pickup = CreatePickup(..........................);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)