need help
#1

Hello.

I made gamemode ages ago in samp 0.2x. There is the time system in top right corner. I would like to know how to delate it. and to make the time be at 22 or 23 in night all of the time.

Thanks, Eryk
Reply
#2

pawn Код:
SetPlayerTime(playerid, 0, 0);
Add this to OnPlayerConnect, then create a timer to keep setting the clock to 00:00
Reply
#3

Check if you don't have the filterscript gl_realtime in your filterscripts line. It adds a clock.
Reply
#4

He wants the time to be 00:00 24/7...
Reply
#5

dont have it in filterscripts and how to make settimer ?? end of script ??

SetTimer("Time", 1000, 1);

pls help ;/

and will this be for all players ??
Reply
#6

Read WIKI Tutorials:

SetTimer, SetTimerEx and KillTimer
Reply
#7

pawn Код:
new TimeTimer;

public OnGameModeInit()
{
    TimeTimer = SetTimer("SetTime",1000,1);
    return 1;
}

public OnGameModeExit()
{
    KillTimer("TimeTimer");
    return 1;
}

public SetTime()
{
  for(new i = 0; i < MAX_PLAYERS; i++)
    {
      if(IsPlayerConnected(i))
      {
            SetPlayerTime(i, 0, 0);
        }
    }
    return 1;
}
Reply
#8

Quote:
Originally Posted by DiMeNsIoN©
He wants the time to be 00:00 24/7...
Yes but he also wants the clock to be disabled...
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)