Jump to page content
English English   Polish Polish   Dutch Dutch   Russian Russian   German German   Hungarian Hungarian   Norwegian Norwegian   Swedish Swedish   Finnish Finnish   Romanian Romanian   Spanish Spanish   Portuguese Portuguese   Latvian Latvian  
Homepage
Home
Register
Login

Resources
Forum
Wiki
Servers

rss50p - Drift (50drift)

Category:script
Author(s):50p
Downloads:7741
Rate:You need to be logged in to vote
Rating:4.8 (10 Votes)
Description:
Drift resource with nice drift meter.

See it in action: http://www.youtube.com/watch?v=8UoVwWvg6Pg

Features:
* Points for drift
* The greater drift angle and speed the greater score
* Drift meter drawn at the bottom of the screen (can be shown/hidden with /showdriftmeter <true/false>)
* Combo for drift when you stop drift and start drift again within 2 seconds - change direction of drift is also a combo
* 7 segments digit font included
* Custom events for other resources to make use of this resource (have a look in c_drift.lua which creates all the UI elements (excluding drift meter) with pure use of events)
* Command to show/hide the drift meter: /showdriftmeter <true/false>

- onClientVehicleStartDrift - triggered when client starts to drift
- onClientVehicleDrift - triggered during drift (this is where you want to give player points for drift - look in c_drift.lua to see how I calculate points)
- onClientVehicleDriftCombo - triggered when player gets combo (drift direction change, quits drift and starts drift again within 2 seconds)
- onClientVehicleEndDrift - triggered when client stops to drift (you can use this event to send player's score to the server and send a message to everyone telling player's drift score or display best server's drifters or whatever you like to do with their score)

If you don't want players to see best score, score during drift, drift combo then remove c_drift.lua script from meta.xml. This file is responsible for all the drift features. You can use the events to make your own custom drift UI. c_drift.lua is there to show you how to use the custom events.

MTA Forum topic: http://forum.mtasa.com/viewtopic.php?f=108&t=44537
...

(more)

Download latest version | Report

Version history

Version Publish Date Changes
1.0.0 2012-06-20 02:11:41 First public release Download