SA-MP Forums Archive
how to remove that? - 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: how to remove that? (/showthread.php?tid=95328)



how to remove that? - Dripac - 03.09.2009

how to remove 1 timer?




Re: how to remove that? - Dripac - 03.09.2009

Quote:
Originally Posted by ► James_Alex
use
KillTimer
where?


Re: how to remove that? - Dj_maryo1993 - 03.09.2009

I tink he/she is talkin about the clock , it's a bad ideea to put an clock because most of the server already have one.

I don't know if it's going to work , but try TogglePlayerClock(playerid,0) at ongamemodeinit .


Re: how to remove that? - Zeex - 03.09.2009

pawn Код:
public OnPlayerConnect(plaeyrid)
{
    TogglePlayerClock(playerid, 0);
    return 1;
}



Re: how to remove that? - Dripac - 03.09.2009

Quote:
Originally Posted by ► James_Alex
try
pawn Код:
new mytimer; // in the top of the script

mytimer = SetTimer...// your timer functions

// then where you want to stop the timer
KillTimer(mytimer);
thx.. do you know how to set the server time thats it is always midnight?


Re: how to remove that? - Dripac - 03.09.2009

Quote:
Originally Posted by ZeeX
pawn Код:
public OnPlayerConnect(plaeyrid)
{
    TogglePlayerClock(playerid, 0);
    return 1;
}
if i remove that the timer will not show?


Re: how to remove that? - Zeex - 03.09.2009

Yes, you will have only real time clock


Re: how to remove that? - Dripac - 03.09.2009

thx ZeeX ... now how to do always night?


Re: how to remove that? - ALeXIII - 03.09.2009

Remove gl_realtime filterscript from server.cfg