19.05.2012, 06:03
like this?
then:
pawn Код:
CMD:trade(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid,20.0,-103.9105,-22.3268,1000.7188))
{
SendClientMessageEx(playerid, COLOR_GRAD2, " You are not at the Cookie shop!");
return 1;
}
ShowPlayerDialog(playerid, SHOPMENU, DIALOG_STYLE_LIST, "Cookie Shop", "Neon 50\nWeapon set 10\n $500", "Buy", "Cancel");
return 1;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == SHOPMENU)
{
//add your stuff here
return 1;
}
return 0;
}