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 );
}
floor or float
fix it Babe
MessagePlayer( "The server has been online for" + floor( GetTickCount() / 60000 ) + " minutes.", player );
New hosting !
Quote from: BIG[H] on April 27, 2011, 04: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!
Yes i Forgot About it ... thanks for Reminder :P
yea it works lol ;D