07.02.2013, 13:33
i added on my script samp real time but i want make mins to sec any idea?
new Text:txtTimeDisp;
new hour, minute;
new timestr[32];
public UpdateTime()
{
gettime(hour, minute);
format(timestr,32,"%02d:%02d",hour,minute);
TextDrawSetString(txtTimeDisp,timestr);
SetWorldTime(hour);
new x=0;
while(x!=MAX_PLAYERS) {
if(IsPlayerConnected(x) && GetPlayerState(x) != PLAYER_STATE_NONE) {
SetPlayerTime(x,hour,minute);
}
x++;
}
}
new hour, minute, second, timestr[10];
gettime(hour, minute, second);
format(timestr,10,"%02d:%02d:%02d",hour,minute,second);