SA-MP Forums Archive
[FilterScript] jTaxi - A taxi driver system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] jTaxi - A taxi driver system (/showthread.php?tid=417083)

Pages: 1 2


jTaxi - A taxi driver system - Jstylezzz - 19.02.2013

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.
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.
  • 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


Commands Suggestions for the next updateBugs 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!


Re: jTaxi - A taxi driver system - Yves - 19.02.2013

wow this is sexy man good awsome buddy 10/10 reason am gonna use it


Re: jTaxi - A taxi driver system - Jstylezzz - 19.02.2013

Thanks


Re : jTaxi - A taxi driver system - Vukilore - 19.02.2013

Apply some opacity, because we can't see the game !
Good job 8/10 =)
(and use sprites ! )


Re: jTaxi - A taxi driver system - Jstylezzz - 19.02.2013

Added the opacity to the to do list
And, what do you mean with sprites?


Re : jTaxi - A taxi driver system - Vukilore - 19.02.2013

You can try to use sprite to make less ugly the textdraw ? (sorry for english)


Re: jTaxi - A taxi driver system - Jstylezzz - 19.02.2013

I get the part that the textdraw has to be changed, but I don't know what you mean with sprites :\


Re : jTaxi - A taxi driver system - Vukilore - 19.02.2013

https://sampforum.blast.hk/showthread.php?tid=291202

https://sampforum.blast.hk/showthread.php?tid=291722


Re: Re : jTaxi - A taxi driver system - Jstylezzz - 19.02.2013

Quote:
Originally Posted by Vukilore
View Post
Aah, like this, thanks for the suggestions, I added the 'Rework the textdraw' suggestion, I will do something nice for the next update


Re: jTaxi - A taxi driver system - Adzdon - 20.02.2013

Epic, Recommended for CnR servers
anyways Keep it up



Re: jTaxi - A taxi driver system - Latisha - 18.05.2013

I have to edit this #define MONEYPER100 1.00 to change the fare prices


Re: jTaxi - A taxi driver system - Jstylezzz - 18.05.2013

That's the money that will be added to the total fare cost each 100 meters. So, if you want to increase the total fare price, then yes, you have to edit it.


Re: jTaxi - A taxi driver system - Latisha - 18.05.2013

the 1.00 ?


Re: jTaxi - A taxi driver system - Jstylezzz - 18.05.2013

Yeah, 1.00 stands for 1$


Re: jTaxi - A taxi driver system - Latisha - 19.05.2013

what is this for #define STARTAMOUNT 2.66 ?

and also can the workers use a normal taxi(carid: 420)
I mean without cmd: spawntaxi

Edit: You know what, this is useless. all players can use the command without join the job.


Re: jTaxi - A taxi driver system - Jstylezzz - 19.05.2013

This filterscript is not made for your gamemode. If you want to use it as a job, you just need to add one little if statement in each command, to detect if they joined the job. How can I know what job ID it is for your mode? That's why I left it open for the end user to edit it. Also, the start amount define is the money added to the total fare amount, when the passenger gets in the taxi, even if they haven't drove yet, they have to pay 2.66 anyways. Offcourse people can use the standard taxi, id 420, without spawning a taxi. If you look at this code:
pawn Code:
forward IsATaxi(vehicleid);
public IsATaxi(vehicleid)
{
    new vmodel = GetVehicleModel(vehicleid);
    if(vmodel == 420 || vmodel == 438)
    {
        return 1;
    }
    return 0;
}
It looks if the vehicle the player is in is either car id 420 or 438, you can even disable the spawntaxi command at the top.
Before saying things are useless, you might want to look trough the code first.


Re: jTaxi - A taxi driver system - alimash - 08.07.2013

Epic

Thank you


Re: jTaxi - A taxi driver system - iTheScripter - 08.07.2013

this is amazing...


Re: jTaxi - A taxi driver system - StreetGT - 08.07.2013

Textdraw is too big :/


Re: jTaxi - A taxi driver system - Jstylezzz - 08.07.2013

The textdraw is already noted as an update. I'll redo the textdraw for the next update, but I'm still figuring out how to make it. There's no planned update date yet, but whenever I know how it would look nice, I'll work on it.

EDIT: I might have an idea. If there are any more suggestions, things I should add, please tell me!