[FilterScript] AntiCheat Health And Armour - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] AntiCheat Health And Armour (
/showthread.php?tid=516672)
AntiCheat Health And Armour -
Miladajir - 01.06.2014
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.
Re: AntiCheat Health And Armour -
DarkScimitar - 01.06.2014
I have used it its not that special but good try
Re: AntiCheat Health And Armour - Guest4390857394857 - 01.06.2014
good try +rep
Re: AntiCheat Health And Armour -
TuNNeOfficial - 01.06.2014
Simple and nice
Re: AntiCheat Health And Armour -
iRaiDeN - 01.06.2014
Nice!
Re: AntiCheat Health And Armour -
Sajad1999 - 01.06.2014
Good nice
Me Use sciript
------------------------
Me Bad Engilish
http://forum.sa-mp.com/images/icons/icon6.png
Respuesta: AntiCheat Health And Armour -
SickAttack - 01.06.2014
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.
Re: AntiCheat Health And Armour -
Inn0cent - 01.06.2014
Nice one.
Re: AntiCheat Health And Armour -
cleanboy - 06.06.2014
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
Re: AntiCheat Health And Armour -
Ke_NiReM - 06.06.2014
Nice , i will use it