Quote:
Originally Posted by HighPitchedVoice
How does it work with;
pawn Код:
if (strcmp("/shop", cmdtext, true, 10) == 0) { if(IsPlayerCloseToEnemy(playerid)) return SendClientMessage(playerid, COLOR_ORANGE, "You are to close to your enemies to buy anything in the shop."); ShowPlayerDialog(playerid, 123, DIALOG_STYLE_LIST, "Shop", "9mm - $200\nSilenced Pistol - $1000\nDesert Eagle - $1500\nMP5 - $1500\nShotgun - 1500\nCombat Shotgun - $3500\nAK-47 - $4500\nM4 - $5000\nSniper Rifle - 4500","Buy","Cancel"); return true; }
|
on your OnDialogResponse in each case do the same