SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 30/04/2011, 06:44 PM   #1
admantis
High-roller
 
Join Date: Sep 2009
Posts: 2,524
Reputation: 449
Default adm_Rent | Create easy rental vehicles! | 1 line: 1 rental car

adm_Rent

Oh, so I was bored and I made this in 20 mins.

What is this?

With adm_Rent you can create easily rental vehicles, this can help you to develop your roleplay server and system, the rent cost is flexible and customizable.


How to add rental cars?
You can create rental vehicles with the following function:
pawn Code:
CreateRentalVehicle(modelid, x, y, z, angle, color1, color2);
Place that code under OnFilterScriptInit allocated in this code and that will be all!


Commands
There are various commands in this script:
/rentcar : rent a vehicle for the defined cost
/unrentcar : unrent your vehicle
/exitrental : used to exit a rental vehicle if you're frozen
/addrental : commands for admins to generate a 'CreateRentalVehicle' function


Features
- Auto unrent on disconnect
- Easy to change rent cost
- Easy to add rental vehicles
- Can't rent someone's else vehicle
- Utilizes zcmd for faster commands

If you encounter any bug simply report it here, also if you have any questions..


Download
http://pastebin.com/Zp8ZKsg8
Download the link, add your rental vehicles and compile!
admantis is offline   Reply With Quote
Old 30/04/2011, 06:49 PM   #2
StreetGT
Banned
 
Join Date: Dec 2008
Location: Portugal
Posts: 1,032
Reputation: 108
Default Re: adm_Rent | Create easy rental vehicles! | 1 line: 1 rental car

Good Work mate
StreetGT is offline   Reply With Quote
Old 30/04/2011, 06:54 PM   #3
admantis
High-roller
 
Join Date: Sep 2009
Posts: 2,524
Reputation: 449
Default Re: adm_Rent | Create easy rental vehicles! | 1 line: 1 rental car

Thank you. If anybody is unsure on how to use this tell it here.
admantis is offline   Reply With Quote
Old 30/04/2011, 08:00 PM   #4
hackzor4
Big Clucker
 
hackzor4's Avatar
 
Join Date: Apr 2011
Posts: 80
Reputation: 1
Default Re: adm_Rent | Create easy rental vehicles! | 1 line: 1 rental car

Good job !
hackzor4 is offline   Reply With Quote
Old 30/04/2011, 08:06 PM   #5
BizzyD
Gangsta
 
BizzyD's Avatar
 
Join Date: Jan 2011
Location: Home
Posts: 879
Reputation: 66
Default Re: adm_Rent | Create easy rental vehicles! | 1 line: 1 rental car

Very nice job
__________________
We never fail, we only shine with brilliance. One king one faith one religion. And if you hear me come and join the revolution
BizzyD is offline   Reply With Quote
Old 01/05/2011, 07:10 PM   #6
StreetGT
Banned
 
Join Date: Dec 2008
Location: Portugal
Posts: 1,032
Reputation: 108
Default Re: adm_Rent | Create easy rental vehicles! | 1 line: 1 rental car

for next update, i give you a suggestion:

pawn Code:
CreateRentalVehicle(modelid, x, y, z, angle, color1, color2, rentprice);
StreetGT is offline   Reply With Quote
Old 01/05/2011, 07:36 PM   #7
admantis
High-roller
 
Join Date: Sep 2009
Posts: 2,524
Reputation: 449
Default Re: adm_Rent | Create easy rental vehicles! | 1 line: 1 rental car

^Very good idea, I will add it when I've time
admantis is offline   Reply With Quote
Old 09/06/2011, 12:11 AM   #8
TiMxD
Little Clucker
 
Join Date: Oct 2010
Posts: 6
Reputation: 0
Default Re: adm_Rent | Create easy rental vehicles! | 1 line: 1 rental car

I need help setting this up
I get the filterscript part. I just don't get:

pawn Code:
CreateRentalVehicle(modelid, x, y, z, angle, color1, color2);
__________________
Join my server?


I create /userbars. PM if you want one.
TiMxD is offline   Reply With Quote
Old 28/07/2011, 04:36 PM   #9
Darklom
Huge Clucker
 
Darklom's Avatar
 
Join Date: Apr 2010
Posts: 448
Reputation: 34
Default Re: adm_Rent | Create easy rental vehicles! | 1 line: 1 rental car

Quote:
Originally Posted by TiMxD View Post
I need help setting this up
I get the filterscript part. I just don't get:

pawn Code:
CreateRentalVehicle(modelid, x, y, z, angle, color1, color2);
Seriously?
modelid - ID of the car
x - x position
y - y position
z - z position
angle - the angle
color1 - the first color
color2 - the second color
Dun dun dunnnn.
__________________
/-Release-\
Main Release - Fort Carson Roleplay
Quote:
Originally Posted by ****** View Post
Any scripter that's likely to ever be any good will be the sort who finds out WHY you do things, not just WHAT you do.
Darklom is offline   Reply With Quote
Old 11/10/2011, 04:31 AM   #10
Kerlan
Huge Clucker
 
Kerlan's Avatar
 
Join Date: May 2011
Location: Castries, St.Lucia
Posts: 338
Reputation: 23
Default Re: adm_Rent | Create easy rental vehicles! | 1 line: 1 rental car

Can't you call your car?
__________________
Kerlan is offline   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] [FS]Car Rental System [V1.2] RELEASED! V1.2 patchkinson Filterscripts 26 11/10/2011 04:28 AM
Some help needed. Car Rental Shop. Juanxz Help Archive 0 21/03/2010 11:11 AM
Rental Hot Help Archive 1 04/09/2009 10:26 PM
Mapper for Rental! MarkVinnioni Help Archive 11 26/03/2009 02:57 PM


All times are GMT. The time now is 08:01 PM.


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