hello world i need little help
#1

I want to fix server hour on 20:00 never be changed does any one have script for that i used
PHP код:
SetPlayerTime(playerid120); // Noon
And
SetWorldTime 
But dont work?
Reply
#2

Explain with more details
PS: I'm back.

EDIT:
On top of script
Код:
new changedtime, Time;
In the function which is running with a timer of 2 second

Код:
if(gettime() - changedtime > 12000)
{
     foreach(Player, i)
     {
          if(Time > 24) Time = 1;
          else Time++;
          SetPlayerTime(i, Time, 0);
          changedtime = gettime();
     }
}
2ND EDIT:
https://sampwiki.blast.hk/wiki/SetWorldTime is the best stuff
Reply
#3

Any One Have Another code to set world time fixed on 20:00 means set server time to 20:00 never changed
Reply
#4

-Edit- SetWorldTime sets time to a fixed state.
Reply
#5

What a load of shit. SetWorldTime fixes the time at the specified hour. Remove all references to TogglePlayerClock and SetPlayerTime.
Reply
#6

Quote:
Originally Posted by Vince
Посмотреть сообщение
What a load of shit. SetWorldTime fixes the time at the specified hour. Remove all references to TogglePlayerClock and SetPlayerTime.
"My bad" I thought it rolled over...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)