Posts: 498
Threads: 233
Joined: Aug 2013
Reputation:
0
well in my server,when someone is not driving a vehicle and he is afk ,if someone shoots him,and he gets back to game he loses hp,why?
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
It's been said many times in the past. Check in OnPlayerWeaponShot callback if the type is player and the player was hit is AFK (you're supposed to have a system for that) and if so, return 0 to prevent the bullets from causing damage.