OPGD when same team
#1

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?
Reply
#2

SetPlayerTeam does not allow one to damage players on the same team. So it's probably not a bug.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
SetPlayerTeam does not allow one to damage players on the same team. So it's probably not a bug.
I know, but my problem is that OnPlayerGiveDamage it's not called when a player (crouched) shoots another player.
Reply
#4

Maybe a mistake of yours under OnPlayerWeaponShot ? Do you have any check there to see if the player is crouched?
Reply
#5

Quote:
Originally Posted by Troydere
Посмотреть сообщение
Maybe a mistake of yours under OnPlayerWeaponShot ? Do you have any check there to see if the player is crouched?
No, there is clear.
It only happen to some players, not to all players.
Reply
#6

Do you have lagcomp on or off?
Reply
#7

I don't use lagcomp in my server.cfg , so I think it's disabled.
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)