29.02.2012, 15:38
Or you could do:
pawn Код:
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
new str[800];
format(str, sizeof(str), "Brass Knuckles\nGold Club\nNite Stick\nKnife\nBaseball Bat\nShovel\nPool Cue\nKatana\nChainsaw\nPurple Dildo\nSmall Vibrator\nLarge Vibrator\n");
format(str, sizeof(str), "%sFlowers\nCane\nGrenade\nTear Gas\nMolotov Cocktail\n9mm\nSilenced 9mm\nDesert Eagle\nShotgun\nSawn-Off Shotgun\nCombat Shotgun\nMicro SMG\n", str);
format(str, sizeof(str), "%sMP5 / SMG\nAK47\nM4\nTec9\nCountry Rifle\nSniper Rifle\nRocket Launcher\nHeat Seaker\nFlamethrower\nMinigun\nSatchel Charge\nDetonator\n", str);
format(str, sizeof(str), "%sSpray Can\nFire Extinguisher\nCamera\nNightvision Goggles\nThermal Goggles\nParachute", str);
ShowPlayerDialog(playerid, DIALOG_Gun, DIALOG_STYLE_LIST, "{00FF00}List {0000FF}Of {FF0000}Weapons", str, "Spawn Item", "Close");
return 1;
}