SA-MP Forums Archive
Help With Anti-Cheat. I don't want the LAdmins be kicked. - 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: Help With Anti-Cheat. I don't want the LAdmins be kicked. (/showthread.php?tid=74954)



Help With Anti-Cheat. I don't want the LAdmins be kicked. - RyDeR` - 27.04.2009

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


Re: Help With Anti-Cheat. I don't want the LAdmins be kicked. - RyDeR` - 27.04.2009

Please anybody


Re: Help With Anti-Cheat. I don't want the LAdmins be kicked. - GanG$Ta - 27.04.2009

Код:
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;
}



Re: Help With Anti-Cheat. I don't want the LAdmins be kicked. - RyDeR` - 27.04.2009

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


Re: Help With Anti-Cheat. I don't want the LAdmins be kicked. - RyDeR` - 27.04.2009

Thank youuuu It works