27.09.2010, 18:11
Quote:
|
Код:
#include <AutoRestarterV2>
new ServerRestart(days,hours,minutes,seconds,message);
OnGameModeInit
{
ServerRestart(5,0,0,0,3);
}
if ServerRestart(days,hours,minutes,seconds,message){
days = The days you want the server to restart.
hours = The hours you want the server to restart.
minutes = The minutes you want the server to restart.
seconds = The seconds you want the server to restart.
message = 0 or 1 or 2 or 3
0 = Nothing displaying
1 = Send only Server Console info message
2 = Send only Client info message
3 = Send both console and client message
return 1;
}
*EDIT this is not how i did it |
remove this code:
pawn Код:
new ServerRestart(days,hours,minutes,seconds,message);
if ServerRestart(days,hours,minutes,seconds,message){
days = The days you want the server to restart.
hours = The hours you want the server to restart.
minutes = The minutes you want the server to restart.
seconds = The seconds you want the server to restart.
message = 0 or 1 or 2 or 3
0 = Nothing displaying
1 = Send only Server Console info message
2 = Send only Client info message
3 = Send both console and client message
return 1;
}

so keep only this code:
pawn Код:
#include <AutoRestarterV2>
OnGameModeInit
{
ServerRestart(5,0,0,0,3);
}
Best Regards


