View Single Post
Old 22/12/2012, 12:25 PM   #1
Jernu
Banned
 
Join Date: Dec 2012
Posts: 112
Reputation: 22
Default 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.
Jernu is offline   Reply With Quote