19.02.2013, 16:54
(
Last edited by Jstylezzz; 06/08/2014 at 10:28 AM.
)
jTaxi - A driver system
About this script
I wrote this script for my own server, and decided to release it since a little while ago this was requested in the scripting thread alot.
It basically adds a job as taxi driver, with a nice textdraw visible for both passengers and taxi driver in the same car.
You earn money per 100 meters, the amount is configurable in the script itself.
- Version 1.2:
If you look trough the source code, you probably notice some code that hints to custom sprite/textdraw templates for the taxi meter. This is an idea for the next version.
- Things you can configure:
InstallationTo change the layout and appearance of the taxi meter, change the following
- Money per 100 Meters
- Enable/Disable spawn taxi command
- Start amount for fares
- Taxi meter layout to be used
The default design number is 2, which is the new design. Number 1 is the old design. In the next update I'll explain thoroughly how to make a new layout/appearance.pawn Code:#define DESIGN_NUMBER 2 //Change the number according to the design you want, refer to the release thread for pictures of the designs
- Copy the includes from the archive(inside the pawno > include) folder, to your server's pawno > include folder.
- Copy the jTaxi.amx to your server's filterscripts folder.
- Add jTaxi to your server.cfg on the filterscripts line. Remember, it's case sensitive!
- Run the server and enjoy!
- New design
- Old design
- /duty - This will give you on/off duty status. You have to be on duty in order to use the /fare command.
- /fare - This command can only be used when there is a passenger in the car, it will count the distance you drive and the price the customer has to pay.
- /spawntaxi - Will spawn a taxi for you to drive at your location (if this command is enabled)
- /fare command (to set the fee price yourself) [Ready - In the next update]
- Choice between distance payment or time payment [Ready - In the next update]
- Add /service taxi command so that players can call taxi's
- Possibility for taxi drivers to take a call
- No bugs have been reported yet, if you find one, please post it, and I will fix it!
Note! - These includes are all provided inside the archive!
- Getvehicledriver include - Credits to Smeti
- Zcmd - Credits to Zeex
- Colors include - Credits to Oxside
- V1.2 - Archive in the attachment
- V1.2 - Archive on jstylezzz.com
- V1.2 - Source [Pastebin]
- V1.0b - Archive in the attachment
- V1.0b - Source [Pastebin]
Things this script is used in
Also used this script in a released compilation or released gamemode? Let me know, and I'll add it here. Might help your work get seen if people come across this thread.
License
You are NOT allowed to re-upload or re-release this without my WRITTEN permission!
Keep the credits intact!