SA-MP Forums Archive
multiple weapons in 1 line - 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: multiple weapons in 1 line (/showthread.php?tid=82892)



multiple weapons in 1 line - hipy - 21.06.2009

Hi i have a weird problem i have to give a lot of weapons but not all weapons are given

Код:
	GivePlayerWeapon(playerid, 1, 1);
			GivePlayerWeapon(playerid, 2, 1);
			GivePlayerWeapon(playerid, 6, 1);
			GivePlayerWeapon(playerid, 7, 1);
			GivePlayerWeapon(playerid, 10, 1);
			GivePlayerWeapon(playerid, 13, 1);
			GivePlayerWeapon(playerid, 14, 1);
			GivePlayerWeapon(playerid, 15, 1);
			GivePlayerWeapon(playerid, 17, 500);
			GivePlayerWeapon(playerid, 44, 500);
			GivePlayerWeapon(playerid, 45, 500);
is this maby because its not in 1 line? how do i fix it


Re: multiple weapons in 1 line - Klutty - 21.06.2009

It can be that you are trying to give the player 2/3 weapons of the same "type" e.g ak-47 and m4a1 is the same type.

Then only one of the weapons are given.


Re: multiple weapons in 1 line - Joe Staff - 21.06.2009

He's right, as far as I know, you can only carry *i think* 13 weapons at one time and that includes satchel
w/ remote.

slot 0 - Fists/Brass Knuckles
slot 1 - Melee weapons
slot 2 - Pistols
slot 3 - Shotguns
slot 4 - Machine Guns
slot 5 - Assault Rifles

anything after this I don't remember