High Ping | Max ping
* 500 - אם לשחקן כלשהו היה פינג של 500 או יותר הוא יקבל קיק, (אתם יכולים לשנות לכמה שאתם רוצים).PHP Code:
#define MaxPing 500
עכשיו פותחים פאבליק חדש(למי שאין):
ושם שמים:PHP Code:
public OnPlayerUpdate (playerid)
PHP Code:
if(GetPlayerPing(playerid) >= MaxPing)
{
format(String,sizeof(String),"[%d] has been Kicked by Admin "SatlaZone". (Reason: High Ping | Max Ping 500 )%s",GetPlayerPing(playerid)),GetName(playerid),SendClientMessageToAll(Yellow,String),Kick(playerid);
return 1;}
זהו