// put this in top of script
forward weaponanti();
// use this under OnGameModeInit
SetTimer("weaponanti",1500,1);
// put this anywhere :D
public weaponanti()
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsSpawned[i] == 1 && GetPlayerState(i) == PLAYER_STATE_ONFOOT)
{
if (GetPlayerWeapon(i) == 38 || GetPlayerWeapon(i) == 17 || GetPlayerWeapon(i) == 18 || GetPlayerWeapon(i) == 19 || GetPlayerWeapon(i) == 35 || GetPlayerWeapon(i) == 36 || GetPlayerWeapon(i) == 37 || GetPlayerWeapon(i) == 39)
{
if(PlayerAdminLevel[i] < 1) {
new pname[30];
new string[256];
new inter;
inter = GetPlayerInterior(i);
new wep = GetPlayerWeapon(i);
GetPlayerName(i, pname, 30);
format(string, sizeof(string), "**(AUTO BAN)** {3399FF}%s(%d) {FFFFCC} Our Anti-Cheat has detected a hax0r",pname,i);
SendClientMessageToAll(COLOR_RED, string);
format(string, sizeof(string), "{3399FF}%s(%d) {FFFFCC} Has Been Auto Banned Our Anti-Cheat has detected a Weapon hax0r Wep:[%d]",pname,i,wep);
SendAdminMessage(0xFF7F50AA, string);
SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN DETECTED AS A CHEATER/HACKER");
SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN BANNED FROM THIS SERVER");
SendClientMessage(i,COLOR_RED,"If you think this is a mistake. Visit [url][/url] to appeal this ban");
format(string, sizeof(string), "**(AUTO BAN)** %s(%d) Our Anti-Cheat has detected a hax0r Wep:[%d] Int:[%d]",pname,i,wep,inter);
printf("%s", string);
if(udb_Exists(PlayerName(i)) && PLAYERLIST_authed[i]) {
dUserSetINT(PlayerName(i)).("nameban",1);
}
SetCameraBehindPlayer(i);
Ban(i);
}
}
}
}
}
// put thsi top of script
forward healthanti();
// use this under OnGameModeInit
SetTimer("healthanti",1500,1);
// put this anywhere
public healthanti()
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsSpawned[i] == 1)
{
if(PlayerAdminLevel[i] < 1) {
new pname[30];
new string[256];
new inter;
inter = GetPlayerInterior(i);
new Float:ph;
GetPlayerHealth(i,ph);
if(ph >= 101){
GetPlayerName(i, pname, 30);
format(string, sizeof(string), "**(AUTO BAN)** {3399FF}%s(%d) {FFFFCC} Our Anti-Cheat has detected a hax0r",pname,i);
SendClientMessageToAll(COLOR_RED, string);
format(string, sizeof(string), "{3399FF}%s(%d) {FFFFCC} Has Been Auto Banned Our Anti-Cheat has detected a Weapon hax0r Health",pname,i,wep);
SendAdminMessage(0xFF7F50AA, string);
SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN DETECTED AS A CHEATER/HACKER");
SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN BANNED FROM THIS SERVER");
SendClientMessage(i,COLOR_RED,"If you think this is a mistake. Visit [url][/url] to appeal this ban");
format(string, sizeof(string), "**(AUTO BAN)** %s(%d) Our Anti-Cheat has detected a hax0r Health",pname,i);
printf("%s", string);
if(udb_Exists(PlayerName(i)) && PLAYERLIST_authed[i]) {
dUserSetINT(PlayerName(i)).("nameban",1);
}
SetCameraBehindPlayer(i);
Ban(i);
}
}
}
}
}
}
// put this top of script
forward cashanti();
// use this under OnGameModeInit
SetTimer("cashanti",1500,1);
// put this anymore
public cashanti()
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsSpawned[i] == 1)
{
if (GetPlayerMoney(i) > 8001000)
{
if(PlayerAdminLevel[i] < 1) {
new pname[30];
new string[256];
new inter;
inter = GetPlayerInterior(i);
new pcash = GetPlayerMoney(i);
GetPlayerName(i, pname, 24);
format(string, sizeof(string), "**(AUTO BAN)** {3399FF}%s(%d) {FFFFCC} Our Anti-Cheat has detected a hax0r",pname,i,pcash);
SendClientMessageToAll(COLOR_RED, string);
format(string, sizeof(string), "{3399FF}%s(%d) {FFFFCC} Has Been Auto Banned Our Anti-Cheat has detected a Cash hax0r Cash:[%d]",pname,i,pcash);
SendAdminMessage(0xFF7F50AA, string);
SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN DETECTED AS A CHEATER/HACKER");
SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN BANNED FROM THIS SERVER");
SendClientMessage(i,COLOR_RED,"If you think this is a mistake. Visit to appeal this ban");
format(string, sizeof(string), "**(AUTO BAN)** %s(%d) Our Anti-Cheat has detected a hax0r Cash:[$%d] Int:[%d]",pname,i,pcash,inter);
printf("%s", string);
SetCameraBehindPlayer(i);
ResetPlayerMoney(i);
Ban(i)
}
}
}
}
}
Weapon Anti
pawn Код:
Health Anti pawn Код:
Money Anti pawn Код:
|
public healthanti() { for (new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && IsSpawned[i] == 1) // THIS HERE IS 668 ;) { if(PlayerAdminLevel[i] < 1) { new pname[30]; new string[256]; new inter; inter = GetPlayerInterior(i); new Float:ph; GetPlayerHealth(i,ph); if(ph >= 101){ GetPlayerName(i, pname, 30); format(string, sizeof(string), "**(AUTO BAN)** {3399FF}%s(%d) {FFFFCC} Our Anti-Cheat has detected a hax0r",pname,i); SendClientMessageToAll(COLOR_RED, string); format(string, sizeof(string), "{3399FF}%s(%d) {FFFFCC} Has Been Auto Banned Our Anti-Cheat has detected a Weapon hax0r Health",pname,i,wep); SendAdminMessage(0xFF7F50AA, string); SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN DETECTED AS A CHEATER/HACKER"); SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN BANNED FROM THIS SERVER"); SendClientMessage(i,COLOR_RED,"If you think this is a mistake. Visit to appeal this ban"); format(string, sizeof(string), "**(AUTO BAN)** %s(%d) Our Anti-Cheat has detected a hax0r Health",pname,i); printf("%s", string); if(udb_Exists(PlayerName(i)) && PLAYERLIST_authed[i]) { dUserSetINT(PlayerName(i)).("nameban",1); } SetCameraBehindPlayer(i); Ban(i); } } } } } }
C:\Users\Jordan\Desktop\0.3e Server\gamemodes\Freeroam.pwn(668) : error 017: undefined symbol "IsSpawned" C:\Users\Jordan\Desktop\0.3e Server\gamemodes\Freeroam.pwn(668) : warning 215: expression has no effect C:\Users\Jordan\Desktop\0.3e Server\gamemodes\Freeroam.pwn(668) : error 001: expected token: ";", but found "]" C:\Users\Jordan\Desktop\0.3e Server\gamemodes\Freeroam.pwn(668) : error 029: invalid expression, assumed zero C:\Users\Jordan\Desktop\0.3e Server\gamemodes\Freeroam.pwn(668) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.