No Damage Bug
#1

I have some weird bug in my server, people can't hurt each other.
It doesn't mater if you hit, knife or shoot them, their health just stay 100 for some reason.
You also can't see the impact of a hit, it's like all players are untouchable.
They don't have godmode or something because explosions or falling for a big hight kills them.

What can I do to remove this crazy bug?
Reply
#2

Check script maybe somewhere its sets hp to 100 all the time

With Ctrl+F go through all SetPlayerHealth places
Reply
#3

Return 1 on OnPlayerUpdate.
Reply
#4

Ok, after some testing I found that I was wrong.

First I thought that players lost their ability to gain damage.

But now I found out that some players loose their ability to give damage.

Some players in the server can't hurt others, while other players can at the same time.

What script makes you unable to give damage?
Reply
#5

If players are same team, they can't hurt each other.

SetPlayerTeam(playerid, teamid);
Reply
#6

All players get team 0 after they spawn. Some can hurt each other some can't. =(
Reply
#7

You most probably used AddPlayerClassEx instead of AddPlayerClass.
Reply
#8

Quote:
Originally Posted by Retardedwolf
Посмотреть сообщение
You most probably used AddPlayerClassEx instead of AddPlayerClass.
Didn't use that function, not in gamemode and not in any filterscript.
Reply
#9

If all players are in team 0 (which is a valid team) they wont be able to hurt each other try,
pawn Код:
SetPlayerTeam(playerid,NO_TEAM);
That removes a players team.
Reply
#10

Quote:
Originally Posted by iggy1
Посмотреть сообщение
If all players are in team 0 (which is a valid team) they wont be able to hurt each other try,
pawn Код:
SetPlayerTeam(playerid,NO_TEAM);
That removes a players team.
That did the trick, thanks so much!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)