Help Please - 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: Help Please (
/showthread.php?tid=653830)
Help Please -
Istrator - 14.05.2018
Anyone knows how to do this Health Bar which is the same as Anti Cheat or Anti Hack? ( It prevents the player on performing Health Hacking also it blocks the real Health Bar )
Re: Help Please -
1fret - 14.05.2018
I believe its called server sided health system , you can search it up
Re: Help Please -
GTLS - 14.05.2018
Here,
https://sampforum.blast.hk/showthread.php?tid=505585
also for textdraws,
https://sampforum.blast.hk/showthread.php?tid=536740
Re: Help Please -
Istrator - 14.05.2018
I know it was a server sided health system. I tried to search it up but nothing works.
Anyone can help?
Re: Help Please -
GTLS - 14.05.2018
Quote:
Originally Posted by GTLS
|
You mean to say server sided system is not working for you? then what are the errors or problems are you having?
I gave you link to a simple server sided health system and a TextDraw Tutorial. only what you have to do is, to set TextDraw's value according to health under OnPlayerTakeDamage.
Re: Help Please -
Istrator - 14.05.2018
Quote:
Originally Posted by GTLS
You mean to say server sided system is not working for you? then what are the errors or problems are you having?
I gave you link to a simple server sided health system and a TextDraw Tutorial. only what you have to do is, to set TextDraw's value according to health under OnPlayerTakeDamage.
|
The link you send is not working on my script. I tried to fix but still not working. Anyone can help?
Re: Help Please -
GTLS - 14.05.2018
https://sampforum.blast.hk/showthread.php?tid=204399
https://sampforum.blast.hk/showthread.php?tid=488822 - This one's a tutorial for Anti Health Hack System, and Server sided health is the base of it so.. you might wanna check it out..
Quote:
Originally Posted by Istrator
The link you send is not working on my script. I tried to fix but still not working. Anyone can help?
|
No one's gonna give you a ready made script here, you will have to mess with PAWN to make yourself one. Just saying that include is not working and lazy-ing out scripting isnt gonna help buddy.. If there are some errors or no errors but its not working In Game, what is it that you did to debug it or to solve it? May be show us the code you made..
Re: Help Please -
Istrator - 14.05.2018
Quote:
Originally Posted by GTLS
https://sampforum.blast.hk/showthread.php?tid=204399
https://sampforum.blast.hk/showthread.php?tid=488822 - This one's a tutorial for Anti Health Hack System, and Server sided health is the base of it so.. you might wanna check it out..
No one's gonna give you a ready made script here, you will have to mess with PAWN to make yourself one. Just saying that include is not working and lazy-ing out scripting isnt gonna help buddy.. If there are some errors or no errors but its not working In Game, what is it that you did to debug it or to solve it? May be show us the code you made..
|
Maybe I'll send the code of mine once I hand my PC again. ( Currently using my phone ).
Re: Help Please -
CodeStyle175 - 14.05.2018
how to even scripted those things when you dont know anything about server sided health?
Re: Help Please -
Istrator - 15.05.2018
Quote:
Originally Posted by GTLS
https://sampforum.blast.hk/showthread.php?tid=204399
https://sampforum.blast.hk/showthread.php?tid=488822 - This one's a tutorial for Anti Health Hack System, and Server sided health is the base of it so.. you might wanna check it out..
No one's gonna give you a ready made script here, you will have to mess with PAWN to make yourself one. Just saying that include is not working and lazy-ing out scripting isnt gonna help buddy.. If there are some errors or no errors but its not working In Game, what is it that you did to debug it or to solve it? May be show us the code you made..
|
This link »
https://sampforum.blast.hk/showthread.php?tid=488822 only detects when a player reaches the limit of their health and armour but doesn't detect if a player uses a Health Hack or Armour Hack that can be increased manually without reaching the maximum limit of their health.
This link »
https://sampforum.blast.hk/showthread.php?tid=204399 works well but the Functions aren't useful. I need like I'll change "SetPlayerHealth" to "SetPlayerHealthEx" or "SetPlayersHealthEx" so that hackers can't perform health hacks.
Here's one example of anti-cheats I'm using:
https://sampforum.blast.hk/showthread.php?tid=319800
Check that "ServerWeapon" which replaced the "GivePlayerWeapon" and detects a player when it uses a weapon made from GivePlayerWeapon not in ServerWeapon.
Quote:
Originally Posted by CodeStyle175
how to even scripted those things when you dont know anything about server sided health?
|
I know about server sided health, just learning more about SA-MP. ( I need help not preach :P )