Posts: 41
Threads: 9
Joined: Jul 2011
Reputation:
0
Trying to make a Server Sided Health/Armour System.
I'm using SetPlayerTeam for all players.
The problem;
When player X is using CROUCH and he is shooting player Y OnPlayerGiveDamage it's not called.. (Players are in the same team)
It's a SAMP bug or what?
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
SetPlayerTeam does not allow one to damage players on the same team. So it's probably not a bug.
Posts: 701
Threads: 7
Joined: Feb 2017
Reputation:
0
Maybe a mistake of yours under OnPlayerWeaponShot ? Do you have any check there to see if the player is crouched?
Posts: 701
Threads: 7
Joined: Feb 2017
Reputation:
0
Do you have lagcomp on or off?
Posts: 41
Threads: 9
Joined: Jul 2011
Reputation:
0
I don't use lagcomp in my server.cfg , so I think it's disabled.
Posts: 701
Threads: 7
Joined: Feb 2017
Reputation:
0
It's enabled by default.
How are you checking the OnPlayerTakeDamage callback? Is there a possibility of that player using health hack or whatever so he doesn't get damage?
I can't think of anything else atm.