SA-MP Forums Archive
Making shop with pickup icon and dialog text, HELP! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Making shop with pickup icon and dialog text, HELP! (/showthread.php?tid=349872)



Making shop with pickup icon and dialog text, HELP! - Subwoofer - 10.06.2012

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


Re : Making shop with pickup icon and dialog text, HELP! - Ataraxia - 10.06.2012

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


Re: Re : Making shop with pickup icon and dialog text, HELP! - Subwoofer - 10.06.2012

Quote:
Originally Posted by Ataraxia
Посмотреть сообщение
You don't need to re-open a topic for your problem, be patient.
Sorry


Re: Making shop with pickup icon and dialog text, HELP! - [DOG]irinel1996 - 10.06.2012

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.


Re: Making shop with pickup icon and dialog text, HELP! - Subwoofer - 10.06.2012

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(..........................);



Re: Making shop with pickup icon and dialog text, HELP! - Elysian` - 10.06.2012

Yes, Click here to learn more about them.


Re: Making shop with pickup icon and dialog text, HELP! - JhnzRep - 10.06.2012

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.


Re: Making shop with pickup icon and dialog text, HELP! - Subwoofer - 10.06.2012

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)