Ping Kick System! [HELP] +REP
#1

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.
Reply
#2

Код:
if(GetPlayerPing(playerid) > 1000)
{
    // kick
}
Reply
#3

Is it that simple to make a ping code ? Or is there any advance code out there ?
Reply
#4

Here: https://sampwiki.blast.hk/wiki/GetPlayerPing
Reply
#5

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.
Reply
#6

Thanks guys +rep for both of you.
Reply
#7

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).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)