OnPlayerUpdate
#6

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
Considering 0.3x has inbuilt pause-detection now, that is pretty useless- don't you think?
0.3x has the inbuilt pause system but for large server is not enough. And trust me, with a large server you have to detect death evaders, tons of them, and the default pause system isn't enough.


pawn Код:
public pausecheck()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        new PausedSeconds = gettime()-PauseTime[i];
        if(PausedSeconds > 10 || PausedSeconds < 20)
        SetPlayerChatBubble(i, "Paused", COLOR_YELLOW, 100.0, 5000);
        }
    return 1;
}
Increase the pausing time delay because with 5 seconds it gonna "spam" your CPU hard. Also 5 seconds isn't a good time for detecting a paused player since i can press ESC just to check the map.
Reply


Messages In This Thread
OnPlayerUpdate - by Blackazur - 04.04.2013, 17:46
Re: OnPlayerUpdate - by Scenario - 04.04.2013, 17:51
AW: OnPlayerUpdate - by Blackazur - 04.04.2013, 17:53
Re: OnPlayerUpdate - by Scenario - 04.04.2013, 17:56
AW: OnPlayerUpdate - by Blackazur - 04.04.2013, 17:57
Re: OnPlayerUpdate - by Face9000 - 04.04.2013, 22:55

Forum Jump:


Users browsing this thread: 1 Guest(s)