Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ServerPingProtection()
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- new GetPing = GetPlayerPing(i);
- if(GetPing > MAX_PING_LIMIT)
- {
- new string[256];
- new giveplayer[MAX_PLAYER_NAME];
- GetPlayerName(i, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "Ai primit kick deoarece ai pingul prea mare ");
- format(string, sizeof(string), "%s a primit kick pentru ping prea mare", giveplayer);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- KickLog(string);
- Kick(i);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment