help 2 add some thing in anti cheat
#1

i create anti cheat that work on timers
like
Quote:

OnGameModeInit
SetTimer("AntiMiniGun",1000,1);

down in the mode
Quote:

forward AntiMiniGun();
public AntiMiniGun(){
for(new i=0; i<MAX_PLAYERS; i++){
if(IsPlayerConnected(i)) {
if(GetPlayerWeapon(i) == 3
Ban(i);
}
}
}

there is no problom in that but i want that if admin have it he not get ban
how i do it ?
Reply
#2

Quote:
Originally Posted by rong13
Код:
OnGameModeInit
	SetTimer("AntiMiniGun",1000,1);
Код:
forward AntiMiniGun();
public AntiMiniGun()
{
 	
    for(new i=0; i<MAX_PLAYERS; i++)
 	{
 	 	if(!IsPlayerAdmin(i)
 	 	{
 	 	}
 	 	else
 	 	{
 	 	 	if(GetPlayerWeapon(i) == 38)
 	 	 	{
	 	 	Ban(i);
		 	}
 	 	}
	}
}
this should do it
Reply
#3

tanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)