[Include] [sAwh] Anti Weapons And Ammo Hack
#21

This isn't possible with weapon hacks and ammo, i tested this long time with serversided and cheats override Reseting weapons etc. The checks work but you cannot force the cheater unfortunately.
Reply
#22

Well as you're already using OPU, you could just check for a weapon change in OPU, an if there 'is indeed' a change in weapon you could then call your external function to check if the new weapon is stored in the enumerator and ban/kick if not.

As already stated, resetting and setting the weapons continuously will have no effect.. you're better off to just ban/kick offenders as minigun user can kill a whole bunch of players in 3 seconds.
Reply
#23

Quote:
Originally Posted by Killa[DGZ]
Посмотреть сообщение
Well as you're already using OPU, you could just check for a weapon change in OPU, an if there 'is indeed' a change in weapon you could then call your external function to check if the new weapon is stored in the enumerator and ban/kick if not.

As already stated, resetting and setting the weapons continuously will have no effect.. you're better off to just ban/kick offenders as minigun user can kill a whole bunch of players in 3 seconds.
That's true, that's why I've given users full control to set the punishments. About the OPU, I'll think about it in next update.
Reply
#24

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
Nope i still dont get what youre trying to say here and im pretty sure no one does, how's that going to cause any problems when he returned the same function? Hows it supposed to look like then??
If you pass an invalid ID (higher than MAX_PLAYERS or max weapon slots) to this function: (let it be playerid, or weapon id)

PHP код:
stock wSetPlayerAmmo(playeridweaponammo)
{
    
weaponsInfo[playerid][Ammo][weapon] = ammo;
    if(!
weaponsInfo[playerid][wImmune]) SetTimerEx("wResetImmune"3000false"i"playerid);
    
weaponsInfo[playerid][wImmune] = true;
    return 
SetPlayerAmmo(playeridweaponammo);

You will end up crashing the server for array out of bounds exception on this line:

PHP код:
weaponsInfo[playerid][Ammo][weapon] = ammo
Reply
#25

Quote:
Originally Posted by iKarim
Посмотреть сообщение
If you pass an invalid ID (higher than MAX_PLAYERS or max weapon slots) to this function: (let it be playerid, or weapon id)

PHP код:
stock wSetPlayerAmmo(playeridweaponammo)
{
    
weaponsInfo[playerid][Ammo][weapon] = ammo;
    if(!
weaponsInfo[playerid][wImmune]) SetTimerEx("wResetImmune"3000false"i"playerid);
    
weaponsInfo[playerid][wImmune] = true;
    return 
SetPlayerAmmo(playeridweaponammo);

You will end up crashing the server for array out of bounds exception on this line:

PHP код:
weaponsInfo[playerid][Ammo][weapon] = ammo
Thats exactly why i said it would be the scripter's fault but i guess a check for valid ids would work.

@Pottus you are right they wont be able to cheat but makes it harder to see the actual cheater.

@Killa moreover you can loop through the players weapons constantly checking for all what he has compared to the enum saving his wep info instead of waiting for him to scroll to the weapon he spoofed, adding to that a timer would be better off instead of using OPU.

@Gammix what do you mean you cant force the cheater??
Reply
#26

^^
You do ResetPlayerWeapons on a hacker and there will be no effect, their cheat completely disables your input.
Reply
#27

Quote:
Originally Posted by Gammix
Посмотреть сообщение
^^
You do ResetPlayerWeapons on a hacker and there will be no effect, their cheat completely disables your input.
Oh lmao well actually that's why it redirects to a callback which the users must use to kick/ban the player, i would never keep a weapon/money cheater on my server, these two cheats are the ones i straight up ban for.
Reply
#28

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
Oh lmao well actually that's why it redirects to a callback which the users must use to kick/ban the player, i would never keep a weapon/money cheater on my server, these two cheats are the ones i straight up ban for.
Money is something you don't need ban/kick for. You can completely make it serversided with a simple variable, cheaters cannot access your game's memory! So is for health and armour.
Reply
#29

Quote:
Originally Posted by Gammix
Посмотреть сообщение
Money is something you don't need ban/kick for. You can completely make it serversided with a simple variable, cheaters cannot access your game's memory! So is for health and armour.
I realize that, i still wouldn't allow someone who tried to cheat on my server.
Reply
#30

You could combine all your includes without having to deal with a large file, just create separate files, then include them to the main anti cheat file with options to disable certain anti cheats.

This way there'll be no maintaining difficultly, as well as you can include the anti laggers include as a must for users which you say it helps your other anti cheats to not false detect laggers.
Reply
#31

Quote:
Originally Posted by iKarim
Посмотреть сообщение
You could combine all your includes without having to deal with a large file, just create separate files, then include them to the main anti cheat file with options to disable certain anti cheats.

This way there'll be no maintaining difficultly, as well as you can include the anti laggers include as a must for users which you say it helps your other anti cheats to not false detect laggers.
....
Quote:
Originally Posted by RogueDrifter
Well that really wouldn't matter much at the moment as using all of the includes none of them will affect the other, meaning you can simply download+include all and they'll still work, i'll say it would be better for you as a user to use one include that links the anticheats to one system but there's a reason that i didn't do that.

The reason that i'm breaking my releases into separates is that it:

1- Motivates me to keep going & releasing more
2- Helps me find bugs a hella lot easier
3- Is more clear & short code to look through

That's why my includes work safely, I've had good time creating, testing and fixing them, you'll see that they hardly return false positives and if they do you'll see me updating it immediately.

Rest assured that Pottus has already caught my attention on the fragmented releases part and i will start working on an all-in-one system soon.
Reply
#32

Update V1.2

Код:
V1.2
-  Added type #4, anti ammo freeze aka infinite ammo aka no reload.
Reply
#33

Quote:
Originally Posted by StrikerZ
Посмотреть сообщение
Put return 1; at end of callback OnPlayerEnterVehicle in your script
If you have the return 1
Reply
#34

Quote:
Originally Posted by dannypanda05
Посмотреть сообщение
If you have the return 1
You can see I've return already as its hooked. It's from your script, post the code of your callback OnPlayerEnterVehicle
Reply
#35

Version 1.3 released, check the main post for more information!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)