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

Can someone explain how to make shop with pickup and dialog text? I realy need it.
Reply
#2

You don't need to re-open a topic for your problem, be patient.
Reply
#3

Quote:
Originally Posted by Ataraxia
Посмотреть сообщение
You don't need to re-open a topic for your problem, be patient.
Sorry
Reply
#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
#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
#6

Yes, Click here to learn more about them.
Reply
#7

https://sampforum.blast.hk/showthread.php?tid=349466 <---- Totally dynamic business system Tutorial.You can choose the location, price, type(24/7, bar etc etc), name all in-game.

Good luck.
Reply
#8

Quote:
Originally Posted by JhnzRep
Посмотреть сообщение
https://sampforum.blast.hk/showthread.php?tid=349466 <---- Totally dynamic business system Tutorial.You can choose the location, price, type(24/7, bar etc etc), name all in-game.

Good luck.
Thanks x)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)