Ping Kick System! [HELP] +REP - 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 Kick System! [HELP] +REP (
/showthread.php?tid=575479)
Ping Kick System! [HELP] +REP -
Nirzor - 27.05.2015
Can anyone post me codes of PickKick system ? Like after crossing 1000 the ping picker will kick the player. The kicker should always be enabled when the server is enabled. It should be auto and no one can disable it , it should be always enabled. If anyone can give me the PingKick codes then ill +rep him. Thanks.
Re: Ping Kick System! [HELP] +REP - justice96 - 27.05.2015
Код:
if(GetPlayerPing(playerid) > 1000)
{
// kick
}
Re: Ping Kick System! [HELP] +REP -
Nirzor - 27.05.2015
Is it that simple to make a ping code ? Or is there any advance code out there ?
Re: Ping Kick System! [HELP] +REP - justice96 - 27.05.2015
Here:
https://sampwiki.blast.hk/wiki/GetPlayerPing
Re: Ping Kick System! [HELP] +REP -
Konverse - 27.05.2015
Quote:
Originally Posted by justice96
Код:
if(GetPlayerPing(playerid) > 1000)
{
// kick
}
|
You can also
Код:
if(GetPlayerPing(playerid) > 500)
{
// kick
}
Depends on how much the highest ping do you want in the server.
Re: Ping Kick System! [HELP] +REP -
Nirzor - 27.05.2015
Thanks guys +rep for both of you.
Re: Ping Kick System! [HELP] +REP -
Vince - 27.05.2015
That example is pretty stupid, and it's pretty dense to kick a player for having one lagspike. You need to monitor their ping constantly so you can either calculate an average, or use a "strike" system (e.g. 10 strikes = kick).