Flood, big flood
#5

Quote:
Originally Posted by Roperr
Посмотреть сообщение
I'm not really sure as to why this happens, but I'm assuming it's because of you checking player's ping in OnPlayerUpdate.

I might have a fix for you:

Somewhere below the #include <a_samp> and other includes, place this line.
pawn Код:
new once[MAX_PLAYERS];
pawn Код:
public OnPlayerUpdate(playerid)
{
    if(GetPlayerPing(playerid) > MAX_PING && once[playerid] == 0)
    {
        new name[MAX_PLAYER_NAME],msg[150];
        GetPlayerName(playerid, name, sizeof(name));
        format(msg, sizeof(msg), "[Kick] Ћaidėjas %s buvo iљmestas uћ per didelį ping'ą. [Max - 400]", name);
        SendClientMessageToAll(Raudona, msg);
        SendClientMessage(playerid, Raudona, "Jūs iљmestas uћ per didelį pingą");
        SetTimerEx("KickPublic", 10, 0, "i", playerid);
        once[playerid]=1;
        return 0;
    }
Inside the timer.
pawn Код:
forward KickPublic(playerid);
public KickPublic(playerid)
{
once[playerid]=0;
Kick(playerid);

}
i'm gona try it, looks like it gona work
Reply


Messages In This Thread
Flood, big flood - by ancezas - 24.02.2013, 08:11
Re: Flood, big flood - by Roperr - 24.02.2013, 08:48
Re: Flood, big flood - by ancezas - 24.02.2013, 08:54
Re: Flood, big flood - by Roperr - 24.02.2013, 09:03
Re: Flood, big flood - by ancezas - 24.02.2013, 09:13
Re: Flood, big flood - by Roperr - 24.02.2013, 09:15
Re: Flood, big flood - by [NoV]LaZ - 24.02.2013, 09:17

Forum Jump:


Users browsing this thread: 1 Guest(s)