SA-MP Forums Archive
No Damage Bug - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: No Damage Bug (/showthread.php?tid=173674)



No Damage Bug - [KMA]DlennartD - 03.09.2010

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?


Re: No Damage Bug - Voldemort - 03.09.2010

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

With Ctrl+F go through all SetPlayerHealth places


Re: No Damage Bug - Retardedwolf - 03.09.2010

Return 1 on OnPlayerUpdate.


Re: No Damage Bug - [KMA]DlennartD - 04.09.2010

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?


Re: No Damage Bug - Ironboy500[TW] - 04.09.2010

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

SetPlayerTeam(playerid, teamid);


Re: No Damage Bug - [KMA]DlennartD - 04.09.2010

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


Re: No Damage Bug - Retardedwolf - 05.09.2010

You most probably used AddPlayerClassEx instead of AddPlayerClass.


Re: No Damage Bug - [KMA]DlennartD - 05.09.2010

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.


Re: No Damage Bug - iggy1 - 05.09.2010

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.


Re: No Damage Bug - [KMA]DlennartD - 05.09.2010

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!