26.02.2012, 01:15
You mean this?
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/weapons", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid, 20321, DIALOG_STYLE_LIST, "Weapons Shop","Pistol($1000)\nSilenced Pistol($2000)\nDesert Eagle($5000)\nShotgun($2500)\nSawn-off Shotgun($5000)\nCombat Shotgun($7500)\nUzi Machine Gun($5000)\nMP5($7500)\nTec-9($10000)\nAK-47($10000)\nM4($20000)","Buy","Cancel"); return 1; } return 0; }