[FilterScript] AntiCheat Health And Armour
#1

Hello guys
I write one anti cheat health and armour.
Good luck
Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerHealth(playerid, 99);
    SetPlayerArmour(playerid, 0);
    return 1;
}
public OnPlayerUpdate(playerid)
{
	new Float:healthplayer;
	GetPlayerHealth(playerid, healthplayer);
	if(healthplayer >= 100)
	{
	SpawnPlayer(playerid);
	}
	new Float:armourplayer;
	GetPlayerArmour(playerid, armourplayer);
	if(armourplayer >= 100)
	{
	SpawnPlayer(playerid);
	}
        return 1;
}
ـــــــــــــــــــــــــــــــــــــــــــــ ـــ
Sorry, My Bad English.
Reply
#2

I have used it its not that special but good try
Reply
#3

good try +rep
Reply
#4

Simple and nice
Reply
#5

Nice!
Reply
#6

Good nice
Me Use sciript

------------------------
Me Bad Engilish http://forum.sa-mp.com/images/icons/icon6.png
Reply
#7

If you are going to use this filterscript then you will have to remove all the vending machines around San Andreas as it will respawn you when you reach 100% of hp, but of course you can code an exception for that by getting the animation, etc.
Reply
#8

Nice one.
Reply
#9

I got problem, i can put it on my OnPlayerUpdate, but i have error if im going to put it on OnPlayerSpawn.. Please PM me to help me, or replay here please
Reply
#10

Nice , i will use it
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)