Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Mohamed Boubekri on Apr 13, 2018, 10:11 AM

Title: Question About Time
Post by: Mohamed Boubekri on Apr 13, 2018, 10:11 AM
Hello, i'm creating a server with matches & rounds example blue vs red
anyway, i want the functions: start time, show time left
example i need just a idea, i want show for client side start time, example when matche started then time to will started
so can anybody give me the function start time or count time

also i need time left example /timeleft (show the time left after start a one match)
Thanks!
Title: Re: Question About Time
Post by: umar4911 on Apr 13, 2018, 03:05 PM
timer.elasped
Title: Re: Question About Time
Post by: Mohamed Boubekri on Apr 13, 2018, 06:16 PM
Quote from: umar4911 on Apr 13, 2018, 03:05 PMtimer.elasped
The Function is start count time right?
Title: Re: Question About Time
Post by: umar4911 on Apr 13, 2018, 06:49 PM
Quote from: Mohamed on Apr 13, 2018, 06:16 PM
Quote from: umar4911 on Apr 13, 2018, 03:05 PMtimer.elasped
The Function is start count time right?
tells you how much time passed. So you can minus the total time to find the value.Talking about the timer on top, use a function which reduces that after every 1 second
Title: Re: Question About Time
Post by: Mohamed Boubekri on Apr 13, 2018, 06:53 PM
Quote from: umar4911 on Apr 13, 2018, 06:49 PM
Quote from: Mohamed on Apr 13, 2018, 06:16 PM
Quote from: umar4911 on Apr 13, 2018, 03:05 PMtimer.elasped
The Function is start count time right?
tells you how much time passed. So you can minus the total time to find the value.Talking about the timer on top, use a function which reduces that after every 1 second
oh time left yea i need it but i need also server tell time passed but time passed after me start it i mean how to start count time..
Title: Re: Question About Time
Post by: umar4911 on Apr 14, 2018, 04:54 PM
Quote from: Mohamed on Apr 13, 2018, 06:53 PM
Quote from: umar4911 on Apr 13, 2018, 06:49 PM
Quote from: Mohamed on Apr 13, 2018, 06:16 PM
Quote from: umar4911 on Apr 13, 2018, 03:05 PMtimer.elasped
The Function is start count time right?
tells you how much time passed. So you can minus the total time to find the value.Talking about the timer on top, use a function which reduces that after every 1 second
oh time left yea i need it but i need also server tell time passed but time passed after me start it i mean how to start count time..
Explain a little more. I am not able to understand
Title: Re: Question About Time
Post by: Mohamed Boubekri on Apr 14, 2018, 04:56 PM
Solved.