10.06.2012, 13:26
Can someone explain how to make shop with pickup and dialog text? I realy need it.
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.
Here you have a basic code:
pawn Код:
|
shop_pickup = CreatePickup(..........................);
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. |