- เครดิต
- 35
- ความรู้
-
- เงิน $
-
- ความดี
-
|
public antiping() //Chech players ping!
{ //Opening barell
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++) //This is the most importan line soo dont delete it!
{ //Opening barell
if(GetPlayerPing(playerid) > 500) //»ÃѺ»Ô§µÃ§¹Õé
{ //Opening barell
new string[180], pping[MAX_PLAYER_NAME]; //Do not change this!
GetPlayerName(playerid, pping, sizeof(pping)); //This too....
format(string, sizeof(string), "[Ãкº»éͧ¡Ñº»Ô§·Ó§Ò¹]: %s ä´éÍÍ¡¨Ò¡à«Ô¿àÇÍÃìà¹×èͧ¨Ò¡ÁÕ»Ô§·ÕèÊÙ§à¡Ô¹ä» (Kicked)", pping); //If you want to change Anti High Ping text you can! This is the Best!
SendClientMessageToAll(grey, string); //You can only change the colore "grey" over here if you want to message shows in difrent color!
Kick(playerid); //This kicks the player with high ping!
} //Closing barell
} //Closing barell
return 1; //Return value
} //Closing barell |
|