Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Finch on Mar 19, 2015, 04:43 AM

Title: SPeed o Meter
Post by: Finch on Mar 19, 2015, 04:43 AM
How can i add speedo meter in my server
Title: Re: SPeed o Meter
Post by: DizzasTeR on Mar 19, 2015, 05:05 AM
- A timer activated for a player when he enter the vehicle.
- On the function of the timer get the velocity of the vehicle.
- Manage your own speed measures by using sprite or any other way you want to implement. (Announce etc)
- Kill that timer when player exits the vehicle.

Simple as that.

Note: I think many scripters around here might follow me with this rule against you, and that is never provide code to you. Atleast you will look at wiki and try to write something yourself.
Title: Re: SPeed o Meter
Post by: Kratos_ on Mar 19, 2015, 06:09 AM

Specific timers for specific players will lag the server .  So , I would recommend to create a single timer & start tracking vehicle Speed .
Follow these steps :-




Although , I think that this would be atleast able to print the results . This could be done in even more better way . But , ok . Atleast we should try this first .