20.07.2015, 10:29
PHP код:
new hour, minutes;
GetPlayerTime(playerid, hour, minutes);
SetPlayerTime(playerid, hour-12, minutes);
or better yet under OnPlayerSpawn
if that one fails to set time when going under 0 use this instead,
PHP код:
new hour, minutes;
GetPlayerTime(playerid, hour, minutes);
for(new OB1=0;12;OB1++) {
hour -= 1;
if(hour < 0) {
hour = 23;// change this to max hour in gta sa environment!
}
}
SetPlayerTime(playerid, hour, minutes);