Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*==============================================================================
- _ ____ _____ __ __
- (_) _ \ ___ |_ _|__ __ _| \/ |
- | | |_) / __| | |/ _ \/ _` | |\/| |
- | | __/\__ \ | | __/ (_| | | | |
- |_|_| |___/ |_|\___|\__,_|_| |_|
- [iPs] Anti High Ping
- Criado por: [iPs]Crush
- Versão 0.1
- ==============================================================================*/
- //By Crush and DraKiNs
- #include <a_samp>
- #define MaxPing 200 // Limite de Ping Aqui
- public OnGameModeInit()
- {
- SetTimer("OnPlayerUpPing", 1500, true);
- return 1;
- }
- OnPlayerUpPing(playerid);
- public OnPlayerUpPing(playerid)
- {
- for(new i; i < MAX_PLAYERS; ++i)
- {
- if(!IsPlayerConnected(i) || GetPlayerPing(i) < MaxPing) continue;
- static
- sString[128],
- sName[MAX_PLAYER_NAME];
- GetPlayerName(i, sName, MAX_PLAYER_NAME);
- format(sString, 128, "[Info] O Player %s foi kickado por limite de ping excedido (limite %d)", sName, MaxPing);
- SendClientMessageToAll(0xFF0000FF, sString);
- Kick(i);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement