DM - Bug?
#1

Hallo one more!

I have in server ~5 dm areas (virtual world's). when I write /DM i'm teleporting to DM area, that's OK. But when server is ONLINE about ~5 hours, players write /DM - creating virtual world, but player don't teleporting to DM area. I must to restart server and that's OK. why?
Reply
#2

hm. w/o any code, i can only give a few advices on how i would care of that bug:
° set all your timers to a very low value, like 5 minutes instead of 5 hours. if the weird behavior goes on, its obviously a timer issue.
° create a quick command for printing out the players' virtual world (using SendClientMessagetoAll), including their Name.
by restarting the server, all variables and timers are being resetted. its propably a wrong set Team/PVar) set for a player? maybe a dm-team-balance script?
Reply
#3

I mean i'll use server restart script.

Can you tell my script for server restarting in ~7 hours?
Reply
#4

If you want to restart the server in 7 hours, here's the code to do that:


Under OnGameModeInit()
Код:
SetTimer("ServerRestart,25200000,0);
Then anywhere in the script:

Код:
forward ServerRestart();
public ServerRestart()
{
SendRconCommand("gmx");
return 1;
}
Under OnGameModeExit()

Код:
KillTimer(ServerRestart);
But seriously using GMX really screws up my server so if it creates a problem with text draws, then just remove the above code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)