[HELP] anticheat
#1

Hello how can I make when is no admin on the server then my anticheat i activate on full if you know what I mean nad then send all players some message
Reply
#2

You can Find that here.
Reply
#3

I already have anticheat system I just want code when there's no admin on server then anticheat switch to the full mode protection and send message to all players
Reply
#4

Is there a full mode protection system already on the anti-cheat where you can toggle that on and off? I.e. a ready made command that'll do that, if so, show it to us so we can help you. Or is it always full mode?
Reply
#5

yes I have on and off it's on dialog
Reply
#6

anyone I just want when last admin on server leave then send some message to all players
Reply
#7

try in this way...

Код:
public OnPlayerDisconnect(playerid, reason)
{
	new admins = 0;
	for(new i = 0; i < GetMaxPlayers(); i++)
	{
		if(thisplayeradmin)admins++
	}
	if(admins == 0)ActivateProtectForServer!!!
}
Reply
#8

use this : Click Me

Hope it helped
Reply
#9

omg how don't get it I just want code when last admin disconnect from server then it send all players some message
Reply
#10

here

Код:
public OnPlayerDisconnect(playerid, reason)
{
	new admins = 0;
	for(new i = 0; i < GetMaxPlayers(); i++)
	{
		if(thisplayeradmin)admins++
	}
	if(admins == 1 && thisplayeradmin)sendmessage;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)