SA-MP Forums Archive
ping problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: ping problem (/showthread.php?tid=397207)



ping problem - srcka< - 03.12.2012

In one gamemod has put if you have a big ping to kick from server.How to turn off?


Re: ping problem - Feastahashi - 03.12.2012

Look for the function

Код:
GetPlayerPing
and delete it, or set another limit (integer).


Re: ping problem - xxxDeathxxx - 03.12.2012

set it to maximum maybe cmd /setping or something like this, depends what gamemode you have, usually gamemodes is /setping


Rep if i helped


Re: ping problem - srcka< - 03.12.2012

In gamemode not have GetPlayerPing
and no command /setping


Re: ping problem - Feastahashi - 03.12.2012

Then look at your folder Scriptfiles and check the setting files configured to work on the server.

They are in .ini format.


Re: ping problem - Elysian` - 03.12.2012

OnPlayerUpdate.


Re: ping problem - DexterBR - 03.12.2012

Try /maxping

Let's make this easier, which gm u use?

Maybe u find it in Anticheat features.

For example, one of the most used GMS

Код:
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;
	}



Re: ping problem - srcka< - 03.12.2012

in this gamemode there is not OnPlayerUpdate


Re: ping problem - DexterBR - 03.12.2012

Try this ...