SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Filterscripts (https://forum.sa-mp.com/forumdisplay.php?f=17)
-   -   [FilterScript] jRental - Rentable cars | 1 Rental = 1 Line | (https://forum.sa-mp.com/showthread.php?t=401294)

Jernu 22/12/2012 12:25 PM

jRental - Rentable cars | 1 Rental = 1 Line |
 
Hello SA:MPers. I've made a Car rental system which is very easy to use. When you're ingame you type /addrental in the game, it'll send a printf to the console, giving you the required information to add under OnFilterScriptInit.

pawn Code:
"CreateRental(%d, %f, %f, %f, %f, %d, %d);", iModel, X, Y, Z, Angle, -1, -1);

Code:

iModel = Vehicle Model
X - Vehicle pos
Y - Vehicle pos
Z - Vehicle pos
A - Vehicle Angle

Pictures aren't a big requirement because theres not much to show.

Features:
- Auto unrent on disconnect
- Easy to add rental vehicles
- Can't rent someone's else vehicle
- Change rental price at the top of the script.

Commands:
- /rentcar
- /unrentcar
- /exitrental
- /addrental(RCON Only)

Code:

22/12/2012 - Initial release.

Download:
Click me.
- No mirrors needed.

Credits:
- Zeek :: ZCMD.
- Jernu :: Script.

If you'd like me to add any more information, please say so.

MiniShark 22/12/2012 12:26 PM

Re: jRental - Rentable cars | 1 Rental = 1 Line |
 
I'll test it. :)


All times are GMT. The time now is 10:25 AM.

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