DM - Bug? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: DM - Bug? (
/showthread.php?tid=153688)
DM - Bug? -
Crasher33 - 10.06.2010
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?
Re: DM - Bug? -
Babul - 10.06.2010
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?
Re: DM - Bug? -
Crasher33 - 10.06.2010
I mean i'll use server restart script.
Can you tell my script for server restarting in ~7 hours?
Re: DM - Bug? -
DJDhan - 10.06.2010
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.