SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 19/02/2013, 04:54 PM   #1
Jstylezzz
High-roller
 
Jstylezzz's Avatar
 
Join Date: Sep 2011
Location: Netherlands
Posts: 2,973
Reputation: 1545
Default jTaxi - A taxi driver system

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:
  • Money per 100 Meters
  • Enable/Disable spawn taxi command
  • Start amount for fares
  • Taxi meter layout to be used
To change the layout and appearance of the taxi meter, change the following
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
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.
Installation
  1. Copy the includes from the archive(inside the pawno > include) folder, to your server's pawno > include folder.
  2. Copy the jTaxi.amx to your server's filterscripts folder.
  3. Add jTaxi to your server.cfg on the filterscripts line. Remember, it's case sensitive!
  4. Run the server and enjoy!

Screenshots
  • New design


  • Old design


Commands
  • /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)

Suggestions for the next update
  • /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
Bugs
  • No bugs have been reported yet, if you find one, please post it, and I will fix it!

Extra requirements
Note! - These includes are all provided inside the archive!

Download

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!
Attached Files
File Type: rar jTaxi.rar (11.7 KB, 266 views)
File Type: rar jTaxi_1.2.rar (13.2 KB, 555 views)
__________________
West Side Gaming: Roleplay is looking for faction leaders/members!

WSG Discord - WSG Forum - WSG:Roleplay SA-MP Server

Working on a rewrite of the gamemode to a SampSharp version. It's starting to look very promising!

Last edited by Jstylezzz; 06/08/2014 at 10:28 AM.
Jstylezzz is offline   Reply With Quote
Old 19/02/2013, 05:30 PM   #2
Yves
High-roller
 
Yves's Avatar
 
Join Date: Feb 2013
Location: Area 51
Posts: 1,630
Reputation: 122
Default Re: jTaxi - A taxi driver system

wow this is sexy man good awsome buddy 10/10 reason am gonna use it
__________________
Yves is offline   Reply With Quote
Old 19/02/2013, 05:34 PM   #3
Jstylezzz
High-roller
 
Jstylezzz's Avatar
 
Join Date: Sep 2011
Location: Netherlands
Posts: 2,973
Reputation: 1545
Default Re: jTaxi - A taxi driver system

Thanks
__________________
West Side Gaming: Roleplay is looking for faction leaders/members!

WSG Discord - WSG Forum - WSG:Roleplay SA-MP Server

Working on a rewrite of the gamemode to a SampSharp version. It's starting to look very promising!
Jstylezzz is offline   Reply With Quote
Old 19/02/2013, 06:54 PM   #4
Vukilore
High-roller
 
Vukilore's Avatar
 
Join Date: Jan 2011
Location: http://forum.sa-mp-fr.com/index.php
Posts: 3,535
Reputation: 110
Default Re : jTaxi - A taxi driver system

Apply some opacity, because we can't see the game !
Good job 8/10 =)
(and use sprites ! )
__________________
http://forum.sa-mp-fr.com/index.php. << here rest the french forum, in piece.
Vukilore is offline   Reply With Quote
Old 19/02/2013, 06:57 PM   #5
Jstylezzz
High-roller
 
Jstylezzz's Avatar
 
Join Date: Sep 2011
Location: Netherlands
Posts: 2,973
Reputation: 1545
Default Re: jTaxi - A taxi driver system

Added the opacity to the to do list
And, what do you mean with sprites?
__________________
West Side Gaming: Roleplay is looking for faction leaders/members!

WSG Discord - WSG Forum - WSG:Roleplay SA-MP Server

Working on a rewrite of the gamemode to a SampSharp version. It's starting to look very promising!
Jstylezzz is offline   Reply With Quote
Old 19/02/2013, 07:01 PM   #6
Vukilore
High-roller
 
Vukilore's Avatar
 
Join Date: Jan 2011
Location: http://forum.sa-mp-fr.com/index.php
Posts: 3,535
Reputation: 110
Default Re : jTaxi - A taxi driver system

You can try to use sprite to make less ugly the textdraw ? (sorry for english)
__________________
http://forum.sa-mp-fr.com/index.php. << here rest the french forum, in piece.
Vukilore is offline   Reply With Quote
Old 19/02/2013, 07:02 PM   #7
Jstylezzz
High-roller
 
Jstylezzz's Avatar
 
Join Date: Sep 2011
Location: Netherlands
Posts: 2,973
Reputation: 1545
Default Re: jTaxi - A taxi driver system

I get the part that the textdraw has to be changed, but I don't know what you mean with sprites :\
__________________
West Side Gaming: Roleplay is looking for faction leaders/members!

WSG Discord - WSG Forum - WSG:Roleplay SA-MP Server

Working on a rewrite of the gamemode to a SampSharp version. It's starting to look very promising!
Jstylezzz is offline   Reply With Quote
Old 19/02/2013, 07:15 PM   #8
Vukilore
High-roller
 
Vukilore's Avatar
 
Join Date: Jan 2011
Location: http://forum.sa-mp-fr.com/index.php
Posts: 3,535
Reputation: 110
Default Re : jTaxi - A taxi driver system

http://forum.sa-mp.com/showthread.php?t=291202

http://forum.sa-mp.com/showthread.php?t=291722
__________________
http://forum.sa-mp-fr.com/index.php. << here rest the french forum, in piece.
Vukilore is offline   Reply With Quote
Old 19/02/2013, 07:17 PM   #9
Jstylezzz
High-roller
 
Jstylezzz's Avatar
 
Join Date: Sep 2011
Location: Netherlands
Posts: 2,973
Reputation: 1545
Default Re: Re : jTaxi - A taxi driver system

Aah, like this, thanks for the suggestions, I added the 'Rework the textdraw' suggestion, I will do something nice for the next update
__________________
West Side Gaming: Roleplay is looking for faction leaders/members!

WSG Discord - WSG Forum - WSG:Roleplay SA-MP Server

Working on a rewrite of the gamemode to a SampSharp version. It's starting to look very promising!
Jstylezzz is offline   Reply With Quote
Old 20/02/2013, 12:33 PM   #10
Adzdon
Big Clucker
 
Adzdon's Avatar
 
Join Date: Nov 2011
Posts: 85
Reputation: 7
Default Re: jTaxi - A taxi driver system

Epic, Recommended for CnR servers
anyways Keep it up
__________________
Adzdon is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [NPC]Taxi Driver Los Santos faff Filterscripts 7 19/08/2014 07:14 AM
taxi driver command Maraudeur Scripting Help 2 28/01/2013 12:31 PM
Player gets in taxi with taxi driver [LHT]Bally Scripting Help 1 14/01/2013 01:11 PM
[NPC] Taxi Driver V1ceC1ty Scripting Help 17 19/01/2012 02:40 PM
[NPC] Taxi Driver v0.2 _TeRmiNaToR_ Help Archive 9 07/09/2009 07:52 PM


All times are GMT. The time now is 09:42 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.