Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: [GCK]KoFFe on January 12, 2011, 04:56:10 PM

Title: help!!
Post by: [GCK]KoFFe on January 12, 2011, 04:56:10 PM
guys what is tickcount??
gettickcount??

i want to run a clock on my server please tell me any code
Title: Re: help!!
Post by: [GCK]KoFFe on January 13, 2011, 08:51:56 PM
Help here

i saw tickcount from time.inc

i want to run the clock like mirc any one help me plz
Title: Re: help!!
Post by: aXXo on January 14, 2011, 11:46:03 AM
TickCount returns the number of seconds elapsed.

For example:

Time1=GetTickCount();
Time2=GetTickCount();

Time2-Time1 will be the seconds elapsed between the execution of the above two statements.
Title: Re: help!!
Post by: [GCK]KoFFe on January 14, 2011, 12:44:58 PM
thx :)

but what is KillTimer?

how to use it!!
Title: Re: help!!
Post by: shivambansal on January 14, 2011, 06:01:29 PM
hiiiiiiiii.........
i am [GCK]Avinash
Title: Re: help!!
Post by: aXXo on January 14, 2011, 10:30:00 PM
To start a timer:

new MyTimer;
MyTimer=SetTimer("HealAll",1000,true);


It will call the HealAll() function infinite times in 1 second interval.
The timerid for that timer is saved in MyTimer variable.

so on

KillTimer(MyTimer);

The timer will stop.
Title: Re: help!!
Post by: [GCK]KoFFe on January 16, 2011, 03:52:50 PM
thx but if i had a timer running on Gamemodeinit()
then how to close it and it will automatically start after 15 mins :) i had try this its not works but Bugged
its sick script
SetTimer("putoutofcar",300000,0);