Anticheat Problem - 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: Anticheat Problem (
/showthread.php?tid=400258)
Anticheat Problem -
Blackazur - 17.12.2012
Hello, i have added a VIP-System, that VIP's get special Weapons, but now the Anticheat System ban the VIP-Users, because the Anticheat think it's a Hack, how can i make that the Users where VIP gonna not banned? Here are the Code:
Код:
new w = GetPlayerWeapon(i);
if(w != 0 && w != 40 && PlayerWeapon[i][w] == 0)
{
new gname[32];
GetWeaponName(w,gname,sizeof(gname));
format(str,144,"«| [BUSTED!] Ban: %s [Reason: Weapon Cheat (%s)] Unban-Appeal: Zombie-Opr.Tk |»",PlayerName[i],gname);
SendClientMessageToAll(COLOR_HAUT,str);
Ban(i);
When the Player is VIP.
Re: Anticheat Problem -
mineralo - 17.12.2012
pawn Код:
new w = GetPlayerWeapon(i);
if(w != 0 && w != 40 && PlayerWeapon[i][w] == 0)if(VIP[i] ==0)
{
new gname[32];
GetWeaponName(w,gname,sizeof(gname));
format(str,144,"«| [BUSTED!] Ban: %s [Reason: Weapon Cheat (%s)] Unban-Appeal: Zombie-Opr.Tk |»",PlayerName[i],gname);
SendClientMessageToAll(COLOR_HAUT,str);
Ban(i);
Re: Anticheat Problem -
YoYo123 - 17.12.2012
pawn Код:
if(VIP[i] == 0)
{
//Ban Code
}
Re: Anticheat Problem -
Konstantinos - 17.12.2012
pawn Код:
// Inside the loop
if(VIP[i] == 1) continue;
new w = GetPlayerWeapon(i);
if(w != 0 && w != 40 && PlayerWeapon[i][w] == 0)
{
new gname[32];
GetWeaponName(w,gname,sizeof(gname));
format(str,144,"«| [BUSTED!] Ban: %s [Reason: Weapon Cheat (%s)] Unban-Appeal: Zombie-Opr.Tk |»",PlayerName[i],gname);
SendClientMessageToAll(COLOR_HAUT,str);
Ban(i);