SA-MP Forums Archive
Safe Player Give weapon? Is it possible - 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: Safe Player Give weapon? Is it possible (/showthread.php?tid=318736)



Safe Player Give weapon? Is it possible - RicaNiel - 16.02.2012

Guys i am wondering if is there anyway to make anti weapon hack and ammo hack?
like when admin give player a fodbid weapon it will not ban the player
but when the player uses hack it will automatically ban the player
and yes. also server sided weapon
like when player buy a weapon it will not ban the player
only when they use hack?

Is it possible ?
and please someone will teach me how?


Re: Safe Player Give weapon? Is it possible - ReneG - 16.02.2012

It is very much possible. Just make a separate function.
pawn Код:
forward SafeGivePlayerWeapon(playerid,weaponid,ammo);
public SafeGivePlayerWeapon(playerid,weaponid,ammo);
{
    GivePlayerWeapon(playerid,weaponid,ammo);
    return 1;
}
Untested. If you're scripting for money. You'll figure this out


Re: Safe Player Give weapon? Is it possible - Mikkel_Pedersen - 16.02.2012

Yes it is possible. If you want a good anticheat I would recommend you to check this thread by cessil: https://sampforum.blast.hk/showthread.php?tid=220089 Also don't expect to get a perfect anti cheat the first time. Getting a perfect anticheat can take years.


Re: Safe Player Give weapon? Is it possible - MP2 - 16.02.2012

Quote:
Originally Posted by Mikkel_Pedersen
Посмотреть сообщение
Getting a perfect anticheat can take years.
lolwot

I made a simple anti-cheat that flawlessly* detects armour, jetpack, health and weapon cheats in about a month.

* No wrongful bans reported. Yet. Vigorously tested by myself and others.


Re: Safe Player Give weapon? Is it possible - RicaNiel - 16.02.2012

cool but anyways can anyone help me?
or teach me how to make one of them?