|
|
#1 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Apr 2010
Location: New Delhi,India
Posts: 1,794
Reputation: 270
|
I have a TDM server , My script restart's the server/change's the GM after every 30 mins! It give's BattleWin message's and save score's! Everything use to work well. But now if noone logs into the server when a Round start's of 30 minutes. The server doesnt restart automatically! It works when i go InGame and check everything. But when there is noone in the server it doesnt do anything! I've set lot of timers to Change the game mode after 30 Minutes if one timer doesnt change it. But no helps nothing works if no one in the server.
I've used both SendRconCommand("changemode CWLS") as well as GameModeExit() , I dont know what is wrong. This function use to work well! Please help pawn Code:
|
|
|
|
|
|
#2 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jul 2010
Location: New Zealand
Posts: 242
Reputation: 31
|
Take SetTimer("Changemode", 10 * 1000 , 0); out of the loop. If you call it there, it will only work if a player is connected. Also, You don't need to set a timer. Just save all the data, then call the Changemode function.
|
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
You are using the timer inside the loop. Take it out of the loop to the head of the call back and you are done.
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to change game-mode and add admins commands to samp | Polomikey | Server Support | 16 | 03/12/2011 07:40 PM |
| Server Mode Change Help! | §ñ†¶e®ÐµÐe | Scripting Help | 4 | 20/11/2011 01:04 PM |
| How do I change game-mode name? | Andy_McKinley | Help Archive | 1 | 06/11/2009 10:25 AM |