GetPlayerWeaponData in OnPlayerSpawn - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP (
https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (
https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: GetPlayerWeaponData in OnPlayerSpawn (
/showthread.php?tid=312184)
GetPlayerWeaponData in OnPlayerSpawn -
leong124 - 20.01.2012
I find that if you use GetPlayerWeaponData in OnPlayerSpawn, it will return the weapons and ammos that the player had before death, even the player has no weapon at that moment.
Re: GetPlayerWeaponData in OnPlayerSpawn -
Mafiya - 29.02.2012
same thing happens on my server...
Re: GetPlayerWeaponData in OnPlayerSpawn -
KingHual - 29.02.2012
Then removing his weapons on death should fix the problem.
Re: GetPlayerWeaponData in OnPlayerSpawn -
TheGamer! - 03.03.2012
I tried to make an anticheat system and it checks if the player have weapon in OnPlayerRequestSpawn, and i had same result
Re: GetPlayerWeaponData in OnPlayerSpawn -
Hoborific - 04.03.2012
Same thing can happen with entering vehicles, best to just check player conditions before checking their weapons.
I personally don't check weapons when the player is in the vehicle, so they can hack all they like in a vehicle, but the second they get out BOOM, it will get them.