[HELP] anticheat - 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)
+--- Thread: [HELP] anticheat (
/showthread.php?tid=468321)
[HELP] anticheat -
Luca12 - 07.10.2013
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
Re: [HELP] anticheat -
Problems - 07.10.2013
You can Find that here.
Re: [HELP] anticheat -
Luca12 - 07.10.2013
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
Re: [HELP] anticheat -
DanishHaq - 07.10.2013
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?
Re: [HELP] anticheat -
Luca12 - 07.10.2013
yes I have on and off it's on dialog
Re: [HELP] anticheat -
Luca12 - 08.10.2013
anyone I just want when last admin on server leave then send some message to all players
Re: [HELP] anticheat -
brawrr - 08.10.2013
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!!!
}
Re: [HELP] anticheat -
Jankingston - 08.10.2013
use this :
Click Me
Hope it helped
Re: [HELP] anticheat -
Luca12 - 08.10.2013
omg how don't get it I just want code when last admin disconnect from server then it send all players some message
Re: [HELP] anticheat -
brawrr - 08.10.2013
here
Код:
public OnPlayerDisconnect(playerid, reason)
{
new admins = 0;
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(thisplayeradmin)admins++
}
if(admins == 1 && thisplayeradmin)sendmessage;
}