Help With Anti-Cheat. I don't want the LAdmins be kicked.
#1

Hi,

For example this is my code.

Код:
public Jetpack()
{
	for(new i; i < MAX_PLAYERS; i++)
	{
		if(Jetpacka == 1)
		{
		if(IsPlayerConnected(i))
		{
		if(GetPlayerSpecialAction(i) == 2) 
		{
		format(Jetpacks,sizeof(Jetpacks), "Anti-Cheat: %s Has been kicked [Reason: Jetpack]", Isim(i));
		SendClientMessageToAll(PURPLE, Jetpacks);
		Kick(i);
		}
		else if(IsPlayerLAdmin(i)) // <========= HERE BUT IT DOESN'T WORK. IT STILL KICK THE ADMIN
		{
		}
		}
		}
	}
}
I've used this include
Код:
#include <IsPlayerLAdmin>
Please Help
Reply
#2

Please anybody
Reply
#3

Код:
public Jetpack()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(!IsPlayerLAdmin(i) && (Jetpacka == 1) && (IsPlayerConnected(i) && GetPlayerSpecialAction(i) == 2))
{
format(Jetpacks,sizeof(Jetpacks), "Anti-Cheat: %s Has been kicked [Reason: Jetpack]", Isim(i));
SendClientMessageToAll(PURPLE, Jetpacks);
Kick(i);
}
}
return true;
}
Reply
#4

Quote:
Originally Posted by DeathlyForce
Код:
public Jetpack()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerLAdmin(i)) 
{
if(Jetpacka == 1)
{
if(IsPlayerConnected(i))
{
if(GetPlayerSpecialAction(i) == 2) 
{
format(Jetpacks,sizeof(Jetpacks), "Anti-Cheat: %s Has been kicked [Reason: Jetpack]", Isim(i));
SendClientMessageToAll(PURPLE, Jetpacks);
Kick(i);
}
}
}
}
}
}
Hmm I'll test it Thanks
Reply
#5

Thank youuuu It works
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)