Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Castagna on April 26, 2011, 11:33:51 pm

Title: !hosttime for squirrel !!! (created by [LP]Castagna)
Post by: Castagna on April 26, 2011, 11: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, 05: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, 02:08:44 pm
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, 04:27:09 pm
Yes i Forgot About it ... thanks for Reminder  :P
Title: Re: !hosttime for squirrel !!! (created by [LP]Castagna)
Post by: Castagna on April 27, 2011, 08:04:22 pm
yea it works lol  ;D
Title: Re: !hosttime for squirrel !!! (created by [LP]Castagna)
Post by: thijn on April 28, 2011, 07:06:26 pm
http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Utils/GetTickCount

Nice Copy & Paste..
Title: Re: !hosttime for squirrel !!! (created by [LP]Castagna)
Post by: BIG[H] on April 28, 2011, 07:44:06 pm
TROLL
Title: Re: !hosttime for squirrel !!! (created by [LP]Castagna)
Post by: Castagna on April 28, 2011, 08:10:01 pm
copy & paste ? lol  i created no stealing
i didn't see that example thijin O.O . totally coincidence
Title: Re: !hosttime for squirrel !!! (created by [LP]Castagna)
Post by: tato on April 29, 2011, 01:50:33 am
do you copied castagna? X_X
Title: Re: !hosttime for squirrel !!! (created by [LP]Castagna)
Post by: Venkat on April 29, 2011, 05:29:52 am
do you copied castagna? X_X

isnt it obvious ?
Title: Re: !hosttime for squirrel !!! (created by [LP]Castagna)
Post by: Madara on April 29, 2011, 06:42:31 am
Copy & paste, no coincidence since you knew about squirrel wiki
Title: Re: !hosttime for squirrel !!! (created by [LP]Castagna)
Post by: BIG[H] on April 29, 2011, 12:13:17 pm
(http://www.allfunnypictures.com/images3/copycats.jpg)
xDD
Title: Re: !hosttime for squirrel !!! (created by [LP]Castagna)
Post by: Castagna on April 29, 2011, 08:19:51 pm
omfg , if i had taken the commando from squirrel wiki , i would't post here -.-
Title: Re: !hosttime for squirrel !!! (created by [LP]Castagna)
Post by: Windlord on April 30, 2011, 01:42:02 am
Hello (Pawn / Squirrel) Scripter BIG[H],

floor or float

float does not exist.
(In case anymore "(Pawn / Squirrel) Scripter"s get confused)
Title: Re: !hosttime for squirrel !!! (created by [LP]Castagna)
Post by: BIG[H] on April 30, 2011, 10:52:01 am
Hello (Pawn / Squirrel) Scripter BIG[H],

floor or float

float does not exist.
(In case anymore "(Pawn / Squirrel) Scripter"s get confused)

Yea That a Really ******* Situation and some Time i use SendClientMessage() instead of Message() In Squirrel ...Then i got confused What Happened to my Script and player.Team is Bugged That's why .... I can't Make a Function of Balancing Team