16.05.2017, 00:42
Quote:
If I am not wrong player weapon doesn't update if he is sitting in a vehicle.
So maybe its possible yet to sit as passenger, turn on the hack, get head out of window and start shooting? |
Quote:
That is fully correct. I had myself being banned over and over again on my test server because I didn't take into count if player is in vehicle, very important part!
The weapon that the player held before entering the vehicle will be recorded from GetPlayerWeapon. HOWEVER! I have not tested if it's valid on OnGivePlayerDamage or OnPlayerTakeDamage yet so someone feel free to shed some light here if the parameter that is passed into those callbacks are old weapon ids. |
Testing in game (with debug messages);
Note the message "Weapon I am holding" returns GetPlayerWeapon