Here is a clock script just link the script to a textprint object and it is ready to use.
Code: [Select]
//Simple Clock Script by Dogtorque////
string Hour;
string Minute;
string Second;
string Milliseconds;
float Time;
void Main()
{
Hour = iSystemTime(4);
Time = iSystemTime(4);
Minute = iSystemTime(5);
Second = iSystemTime(6);
Milliseconds = iSystemTime(7);
//////////////////////////////////////////////////////////////
//OUT_25 = Time; //This is for the fog object but is optional
//OUT_26 = 100 + Time*10;
//////////////////////////////////////////////////////////////
if (Time > 12)
iObjectTextSet(OBJ_0,"Time (" + Hour + ":" + Minute + ":" + Second + ":" + Milliseconds + " PM)");
if (Time < 12)
iObjectTextSet(OBJ_0,"Time (" + Hour + ":" + Minute + ":" + Second + ":" + Milliseconds + " AM)");
}