SA-MP Forums Archive
need help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: need help (/showthread.php?tid=129006)



need help - XxerykxX - 20.02.2010

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


Re: need help - DiMeNsIoN© - 20.02.2010

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


Re: need help - Rzzr - 20.02.2010

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


Re: need help - DiMeNsIoN© - 20.02.2010

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


Re: need help - XxerykxX - 20.02.2010

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 ??


Re: need help - LuxurioN™ - 20.02.2010

Read WIKI Tutorials:

SetTimer, SetTimerEx and KillTimer


Re: need help - DiMeNsIoN© - 20.02.2010

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;
}



Re: need help - Rzzr - 20.02.2010

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...