SA-MP Forums Archive
Weapons keep reseting - 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)
+--- Thread: Weapons keep reseting (/showthread.php?tid=631476)



Weapons keep reseting - Bwandon - 29.03.2017

Код:
	GivePlayerWeapon(playerid, PlayerInfo[playerid][cWeapon1], PlayerInfo[playerid][cAmmo1]);
	GivePlayerWeapon(playerid, PlayerInfo[playerid][cWeapon2], PlayerInfo[playerid][cAmmo2]);
I have this code in 'OnPlayerSpawn', although it gives me the weapon and then takes it straight off me.

I've been through my code like 10 times trying to figure out why this is happening but no luck. I haven't used the function ResetPlayerWeapons once in my code.


Re: Weapons keep reseting - Bwandon - 29.03.2017

Fixed.