
05-25-2001, 06:44 AM
|
|
RadioActive Monkeeh
|
 |
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
|
|
|
uhmm..
here is a little code for example if you want to have a little clock in your inventory and when you fire , it shows the time and date ...
I might make a version where it has the status bar of it also (like on g2k1 and X)
// NPC made by LiquidIce
//thx to Kyle for making a little
// 'arithmetics' =P
if (!isweapon&&(playerenters)) {
hide;
toweapons *Time;
}
if (weaponfired) {
this.minute = int(timevar / .2)%60;
this.hour = int(this.minute / 60)%24;
this.day = int(this.hour / 24)%30;
this.month = int(this.day / 30)%12;
this.year = int(this.month / 12);
if (this.minute<10) { setstring bclockminute,0#v(this.minute); }
else { setstring bclockminute,#v(this.minute); }
setstring bclockyear,#v(this.year);
setstring bclockmonth,#v(this.month);
setstring bclockday,#v(this.day);
setstring bclockhour,#v(this.hour);
say2
#xCurrent Time#y#b
Year: #s(bclockmonth)/#s(bclockday)/#s(bclockyear) #x#b
Time: #s(bclockhour):#s(bclockminute) #z;
setstring bclockyear,;
setstring bclockmonth,;
setstring bclockday,;
setstring bclockhour,;
setstring bclockminute,;
} |
|
|
|