[Tutorial] How to make a check timer (will check laggers)
#6

It won't even work...
pawn Code:
public OnGameModeInit()
{
    SetTimer("CheckStats", 1000, true);
    return 1;
}

forward CheckStats();
public CheckStats()
{
    for (new i = 0; i != MAX_PLAYERS; ++ i)
    {
        if (IsPlayerConnected(i))
        {
             // check code
        }
    }
    return 1;
}
Never post untested code...


EDIT:

OnPlayerPacketLoss is not even SA-MP native function.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)