toggle clock for virtual world
#1

How can I have the clock synced for all players, but only for one virtual world? Meaning I do not want it shown for the other worlds. Thanks.
Reply
#2

You could try this OnPlayerUpdate
pawn Код:
if(GetPlayerVirtualWorld(playerid) == MAIN_WORLD)
{
new Hour, Minute, Second;
gettime(Hour, Minute, Second);
SetPlayerTime(House, Minute);
TogglePlayerClock(playerid, 1);
}
else
{
TogglePlayerClock(playerid, 0);
}
Replace MAIN_WORLD with the world you want to Sync.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)