03.12.2012, 20:24
In one gamemod has put if you have a big ping to kick from server.How to turn off?
GetPlayerPing
if(dialogid == 13337) { if(response) { if(PlayerInfo[playerid][pAdmin] < 6) { SendClientMessage(playerid, COLOR_GREY, "* You are not authorized to use this option"); return 1; } new final = strval(inputtext); if(final != 0) { if (final > 65535 || final < 100) { SendClientMessage(playerid, COLOR_GRAD2, "* Max ping may not go above 65535 or below 100"); ShowPlayerDialog(playerid, 13337,DIALOG_STYLE_INPUT,"Max Ping (100-65535)","Insert the max ping here, Must be numeric!","Input","Cancel"); return 1; } MaxPing = final; format(string, sizeof(string),"* Max ping set to %d",final); SendClientMessage(playerid, COLOR_GREY,string); format(string,sizeof(string),"* The max ping has been set to %d by the Developer %s (%d)",final,sendername,playerid); SendClientMessageToAll(COLOR_CREAM,string); new y, m, d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s has set the max ping to %d",d,m,y,h,mi,s,sendername, final); AdminLog(string); } else return SendClientMessage(playerid, COLOR_GREY,"* Invalid ping, must be numeric and above 100!") && ShowPlayerDialog(playerid, 13337,DIALOG_STYLE_INPUT,"Max Ping (100-65535)","Insert the max ping here, Must be numeric!","Input","Cancel"); } } return 0; }