07.10.2013, 17:55
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
public OnPlayerDisconnect(playerid, reason)
{
new admins = 0;
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(thisplayeradmin)admins++
}
if(admins == 0)ActivateProtectForServer!!!
}
public OnPlayerDisconnect(playerid, reason)
{
new admins = 0;
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(thisplayeradmin)admins++
}
if(admins == 1 && thisplayeradmin)sendmessage;
}