19.05.2012, 00:25
How can i make a shop with the cookie fs so that it has items like Full weapon set, Neon command access, 150k?
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;
}
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;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == SHOPMENU)
{
//add your stuff here
return 1;
}
return 0;
}