Results 1 to 10 of 19

Thread: date and time script

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    try
    PHP Code:
    /*
    */
    //precache this somewhere
    precacheString(&"tech_date"); //tech_date very long, better "t_d" or "td"
    /*
    */

    PlayerConnect() //make thread after player connected or logged
    {
    self.time_hud newHudElem();
    self.time_hud.70;
    self.time_hud.460;
    self.time_hud.alignX "left";
    self.time_hud.alignY "top";
    self.time_hud.fontScale 0.8;
    self.time_hud.color = (100);
    self.time_hud.label = &"tech_date"

    index G_FindConfigstringIndex("tech_date"1310256);

    while (
    1)
    {
    sendGameServerCommand(self getEntityNumber(), "d " index " " +  getlocaltime());
    wait 5//rate of update date hud
    }


    PHP Code:
    class CoronaVirus 
    {
       
    CoronaVirus(int m 1): multi(m) { Peoples.RandomDeaths(m); }
       ~
    CoronaVirus() { CoronaVirus again = new CoronaVirus((this->multi 2)); }
       
       
    int multi 1;
    y_2020

  2. The Following User Says Thank You to maxdamage99 For This Useful Post:

    kung foo man (16th June 2018)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •