frozen health detector - 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)
+--- Thread: frozen health detector (
/showthread.php?tid=512577)
frozen health detector -
Trynda - 11.05.2014
Anyone can give a link with anti-infinite health detector? like ******??
thanks
Re: frozen health detector -
TheSimpleGuy - 11.05.2014
You mean Sobe1t?
pawn Код:
public OnPlayerUpdate(playerid)
{
new Float:hp;
GetPlayerHealth(playerid, hp);
if(hp >= 101) //do shit
return 1;
}
Something like this?
Re: frozen health detector -
Trynda - 11.05.2014
Quote:
Originally Posted by TheSimpleGuy
You mean Sobe1t?
pawn Код:
public OnPlayerUpdate(playerid) { new Float:hp; GetPlayerHealth(playerid, hp); if(hp >= 101) //do shit return 1; }
Something like this?
|
Dafaq? are you stupid?
If admin /god it wont work. if admin set hp 101+ it wont work too
Re: frozen health detector -
ball - 11.05.2014
Check if the player is not an admin
Код:
public OnPlayerUpdate(playerid)
{
if(!IsPlayerAdmin(playerid)) //or player variable if you have an admin system
{
new Float:hp;
GetPlayerHealth(playerid, hp);
if(hp >= 101) //do shit
}
return 1;
}
But if player using godmode in s0be1t, it doesn't change the player health amount. It's blocking health taking and OnPlayerTakeDamage won't be called.