The players have god mode :O How ? [without cheats] - 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: The players have god mode :O How ? [without cheats] (
/showthread.php?tid=255995)
The players have god mode :O How ? [without cheats] -
tal_peretz - 18.05.2011
In the fight system that i built i did this -
PHP код:
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
that's work....... buy when player shoot on other player, it's down to 0 and back to 100 like god mode :O
this is the only SetPlayerHealth in the script... so why that's happend ?
Re: The players have god mode :O How ? [without cheats] -
__ - 18.05.2011
Are you running any extra filterscripts or have you checked your gamemode?
Re: The players have god mode :O How ? [without cheats] -
Hiddos - 18.05.2011
Where do you call this code?
Re: The players have god mode :O How ? [without cheats] -
Jochemd - 18.05.2011
Are you sure you are not running any timer which sets health?
Re: The players have god mode :O How ? [without cheats] -
grand.Theft.Otto - 18.05.2011
Maybe you have teams and the teammates are shooting at each other? Teammates can't die from another teammate.
Re: The players have god mode :O How ? [without cheats] -
xalith - 18.05.2011
im guessing you placed this code under a timer function or such by accident, therefore everytime that timer occurs,health goes back to 100, make sure that your code is placed under OnPlayerSpawn.