10.06.2012, 13:43
Here you have a basic code:
It's not hard, good luck. I don't have time to make it for you, sorry.
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.