Anticheat is wrong(banned me) - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Anticheat is wrong(banned me) (
/showthread.php?tid=83588)
Anticheat is wrong(banned me) -
hipy - 26.06.2009
Can sombody tell me what is wrong at this anti weapon cheat
http://pawn.pastebin.com/d5db0e131
The server had a network iterruption , when i reconnected i got banned for weaponcheats
on my own server! i dont even cheat. can sombody tell me wehat is wrong. the script is very simple , i dont get it
if this cant be fixed how can i dysnc the weapons?
Re: Anticheat is wrong(banned me) -
arnutisz - 26.06.2009
Maybe you have one of those "forbidden" weapons?
Re: Anticheat is wrong(banned me) -
CJ101 - 26.06.2009
Код:
Код:
forward AntiWeaponHack();
public AntiWeaponHack()
{
for(new i=0;i <MAX_PLAYERS; i++)
{
//if (GetPlayerWeapon(i) == 37)
//{
new w, iName[MAX_PLAYER_NAME], string[128];
w = GetPlayerWeapon(i);
if( w == 9 || w == 8 || w == 16 || w == 18 || w == 22 || w == 23 || w == 24 || w == 26 || w == 27 || w == 28 || w == 29 || w == 30 || w == 31 || w == 32 || w == 33 || w == 34 || w ==35 || w ==36 || w ==37 || w ==38 || w ==43 || w ==44 || w ==45 )
{
GetPlayerName(i, iName, sizeof(iName));
format(string, sizeof(string), "[Server] User %s(%d) Was Banned For Weapon Hacking.", iName,i);
SendClientMessageToAll(0xFFFFFFAA,string);
SetTimerEx("AutoBan",1000,false,"i",i);
}
// }
}
how about this:
Код:
if( w == 9 || w == 8 || w == 16 || w == 18 || w == 22 || w == 23 || w == 24 || w == 26 || w == 27 || w == 28 || w == 29 || w == 30 || w == 31 || w == 32 || w == 33 || w == 34 || w ==35 || w ==36 || w ==37 || w ==38 || w ==43 || w ==44 || w ==45 && !IsPlayerAdmin(i))
try that
Re: Anticheat is wrong(banned me) -
hipy - 26.06.2009
that only makes admins imune, i dont want innocent players banned and i had no weapons i just joined
Re: Anticheat is wrong(banned me) -
hipy - 26.06.2009
anybody?
Re: Anticheat is wrong(banned me) -
illay - 26.06.2009
Download...
I repaired you script
Re: Anticheat is wrong(banned me) -
hipy - 26.06.2009
the jetpack part is out etc
what a strange loop btw:
for(new slot = 0; slot < 11; slot++)