MAX_PING help? - 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: MAX_PING help? (
/showthread.php?tid=346663)
MAX_PING help? -
cod5devious - 29.05.2012
I added a max_ping script but how do I stop admins from getting kicked with max_ping?
Re: MAX_PING help? -
CptK - 29.05.2012
RCON Admins? If so, than add
pawn Код:
&& !IsPlayerAdmin(playerid)
(playerid = the id)
Just in the near end of the "if" statement.
Re: MAX_PING help? -
cod5devious - 29.05.2012
I mean like
AdminLevel >= 1
Re: MAX_PING help? -
spedico - 29.05.2012
well, hard to make it correct since you didn't provide any code.
if(AdminLevel[playerid] >= 1)
Re: MAX_PING help? -
TzAkS. - 29.05.2012
Код:
if(GetPlayerPing(playerid) >= 500 && AdminLevel[playerid] < 1) { Kick(playerid); }
Re: MAX_PING help? -
cod5devious - 29.05.2012
Quote:
Originally Posted by TzAkS.
Код:
if(GetPlayerPing(playerid) >= 500 && AdminLevel[playerid] < 1) { Kick(playerid); }
|
Thanks for helping!