Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define MAX_PING (500)
- ptask AntiMaximumPing[1000](playerid)
- {
- if(GetPlayerPing(playerid) > MAX_PING)
- {
- if(!(PlayerInfo[playerid][pAdmin] || IsPlayerAdmin(playerid)))
- {
- SCM(playerid, COLOR_LIGHTRED, "[Anti-Cheat]: You have been kicked for exceeding the maximum ping.");
- defer SafeKick(playerid);
- }
- }
- return 1;
- }
- timer SafeKick[100](playerid)
- {
- return Kick(playerid);
- }
Advertisement
Add Comment
Please, Sign In to add comment