Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: Castagna96 on April 26, 2011, 09:33:51 PM

Title: !hosttime for squirrel !!! (created by [LP]Castagna)
Post by: Castagna96 on April 26, 2011, 09:33:51 PM
 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 );
    }

Title: Re: !hosttime for squirrel !!! (created by [LP]Castagna)
Post by: 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 !
Title: Re: !hosttime for squirrel !!! (created by [LP]Castagna)
Post by: stormeus on April 27, 2011, 12:08:44 PM
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!
Title: Re: !hosttime for squirrel !!! (created by [LP]Castagna)
Post by: BIG[H] on April 27, 2011, 02:27:09 PM
Yes i Forgot About it ... thanks for Reminder  :P
Title: Re: !hosttime for squirrel !!! (created by [LP]Castagna)
Post by: Castagna96 on April 27, 2011, 06:04:22 PM
yea it works lol  ;D