Posts: 150
Threads: 6
Joined: Oct 2013
Reputation:
0
Hello,
I'm either being retarded or there's error in my script somewhere. But when ever a player shots another player with any gun/weapon do damage is given. Do I have to add each weapon and damage to "OnPlayerGiveDamage" or "OnPlayerTakeDamage"? I.m kinda confused :S
Posts: 157
Threads: 55
Joined: Jul 2013
Reputation:
0
you can download a filterscript that will make players loose health when they gets shots
Posts: 150
Threads: 6
Joined: Oct 2013
Reputation:
0
I never use filterscripts. Don't see the point in them.
Posts: 150
Threads: 6
Joined: Oct 2013
Reputation:
0
I have already tried this, but somehow the victim dosen't loss any health what so ever
Posts: 157
Threads: 55
Joined: Jul 2013
Reputation:
0
do you have any errors when you compile ?
Posts: 349
Threads: 38
Joined: Jul 2015
Reputation:
0
For me, It's more likely you have SetPlayerTeam used to set players in same team? If they are in same team, they won't be able to hit each other.
Posts: 150
Threads: 6
Joined: Oct 2013
Reputation:
0
Nope, No errors at all.
EDIT: I have SetPlayerTeam(..) For all my classes at different numbers, Civilian: 1 Police: 2 and so on.
EDIT 2: It was SetPlayerTeam(..), but I had it so Civilians cant kill each other some how..
EDIT 3: Fixed.