• Welcome to Vice City Multiplayer.
 

!hosttime for squirrel !!! (created by [LP]Castagna)

Started by Castagna96, April 26, 2011, 09:33:51 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Castagna96

 Hi guys , well today I will share this useful comand for squirrel by me  :) .This command give you the total time(expresed in minutes) , that your server has been hosted , or turned on...

very simple  ;D

Quote}
    if ( cmd == "host" )
    {
         MessagePlayer( "The server has been online for" + floor( GetTickCount() / 60000 ) + " minutes.", player );
    }


BIG[H]

floor or float

fix it Babe



          MessagePlayer( "The server has been online for" + floor( GetTickCount() / 60000 ) + " minutes.", player );


New hosting !
My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL

stormeus

Quote from: BIG[H] on April 27, 2011, 03:42:43 AM
floor or float

fix it Babe



          MessagePlayer( "The server has been online for" + floor( GetTickCount() / 60000 ) + " minutes.", player );


New hosting !


Actually, floor() is a valid function in Squirrel. It means to round down to the nearest whole number. Anyways, good job, Castagna!

BIG[H]

My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL