SA-MP Forums Archive
GetPlayerWeapon&State Driver problem - 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: GetPlayerWeapon&State Driver problem (/showthread.php?tid=546320)



GetPlayerWeapon&State Driver problem - Mamal75 - 14.11.2014

i have a problem with my anticheat !
i have serverside weapons but GetPlayerWeapon Function won't return current player weapon id and return last player weapon id before player enter vehicle.
and players can spawn weapon on vehicle by cheats and i can't detect it.
please help
how can i get player weapon id when player on vehicle or when player Shot a weapon on vehicle
(OnPlayerWeaponShot won't call too when a player state is driver… )
Please help…


Re: GetPlayerWeapon&State Driver problem - Mamal75 - 15.11.2014

bump !


Re: GetPlayerWeapon&State Driver problem - Bakr - 15.11.2014

You could use SetPlayerArmedWeapon() when the player is entering a vehicle and check if it changes from that while in the vehicle.