25.05.2012, 16:08
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;
}