Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
Considering 0.3x has inbuilt pause-detection now, that is pretty useless- don't you think?
How often is "pausecheck()" being called?
Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
It's a timer, right?
So, is it a timer that gets called once every second, once every minute, once every hour? Show the SetTimer function that calls this.
Posts: 3,351
Threads: 780
Joined: Jan 2010
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.