Vice City Multiplayer

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

Title: help!!
Post by: [GCK]KoFFe on January 12, 2011, 06: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, 10: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, 01:46:03 pm
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, 02:44:58 pm
thx :)

but what is KillTimer?

how to use it!!
Title: Re: help!!
Post by: shivambansal on January 14, 2011, 08:01:29 pm
hiiiiiiiii.........
i am [GCK]Avinash
Title: Re: help!!
Post by: aXXo on January 15, 2011, 12:30:00 am
To start a timer:
Code: [Select]
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
Code: [Select]
KillTimer(MyTimer);
The timer will stop.
Title: Re: help!!
Post by: [GCK]KoFFe on January 16, 2011, 05: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);