SA-MP Forums Archive
[HELP]Weapon - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Weapon (/showthread.php?tid=121296)



[HELP]Weapon - _ReloadeD_ - 16.01.2010

how i can do that:
Код:
if(strcmp(cmd, "/wl", true) == 0 || strcmp(cmd, "/weaponlist", true) == 0) {
		SendClientMessage(playerid, COLOR_LIGHTBLUE, "Weapon List");
		for(new i = 0; i < MAX_SPAWNWEAPONS; i++)
		{
			format (str, sizeof(str), "%d. %s - $%d",i,weaponNames[spawnWeapons[i][0]],spawnWeapons[i][2]);
			SendClientMessage(playerid, COLOR_GREEN,str);
		}
		return 1;
	}
in Dialog?