24.03.2010, 17:19
Hello i have a timer that sets players time to 11 and reset it after 0.1 secs :
Under gamemodeinit
end of gamemode
But when i type /night
My command:
The players time change to 20 and change back to 11. How to fix?
Under gamemodeinit
Код:
SetTimer("czas",100,1);
Код:
forward czas(); public czas(){ for(new i; i<200; i++){ if(IsPlayerConnected(i)) { SetPlayerTime(i,11,0); } } }
My command:
Код:
if(strcmp(cmdtext, "/noc", true) == 0) { SetPlayerTime(playerid, 20 , 0); return 1; }