07.11.2016, 08:17
Here you go...
Top of the script after includes:
OnGameModeInit:
OnGameModeExit:
UpdateIphone function:
OPTIONAL
OnPlayerSpawn:
Top of the script after includes:
PHP Code:
new UpdateIPHONETimer;
PHP Code:
UpdateIphone();
UpdateIPHONETimer = SetTimer("UpdateIphone", 60000, true);
PHP Code:
KillTimer(UpdateIPHONETimer);
PHP Code:
forward UpdateIphone();
public UpdateIphone()
{
new Hour, Minute, Year, Month, Day, str[64];
gettime(Hour, Minute);
getdate(Year, Month, Day);
format(str,sizeof(str),"4G________________%02d:%02d",Hour,Minute);
TextDrawSetString(TD_iPhone[18], str);
format(str,sizeof(str),"%02d:%02d",Hour,Minute);
TextDrawSetString(TD_iPhone_Clock[0], str);
format(str,sizeof(str),"%s, %02d %d",GetMonth(Month), Day, Year);
TextDrawSetString(TD_iPhone[20], str);
ActualizarTiempo();
return 1;
}
OnPlayerSpawn:
PHP Code:
UpdateIphone();