Search for script
#6

Los, I doubt he will find gettime of much use. What he is looking for is a one minute timer which increments a value by one every time it is called and then updates the server time.

What this could look like:
pawn Код:
new CurrentHour;

public OnGameModeInit()
{
    SetTimer("UpdateTime", 60000, true);
}

forward UpdateTime();
public UpdateTime()
{
    CurrentHour ++;
    if(CurrentHour == 24) CurrentHour = 0;
    SetWorldTime(CurrentHour);
}
Reply


Messages In This Thread
Search for script - by euro2cz - 29.12.2011, 14:11
Re: Search for script - by Lуs - 29.12.2011, 14:15
Re: Search for script - by euro2cz - 29.12.2011, 14:19
Re: Search for script - by Lуs - 29.12.2011, 14:24
Re: Search for script - by euro2cz - 29.12.2011, 14:24
Re: Search for script - by AndreT - 29.12.2011, 14:32
Re: Search for script - by euro2cz - 29.12.2011, 14:45

Forum Jump:


Users browsing this thread: 1 Guest(s)