[FilterScript] Dynamic Dealership System
#1

Dynamic Dealership System
Here's a better script that everybody wishes to have. It's a dynamic dealership system where you can create dealerships (and players can buy them, and collect earnings from their cars). Dealership owners can use /earnings to check their earnings, /collectearnings to collect them, /createcar to create a dealership vehicle, and /selldealership to sell their dealership.

Dealerships can be created in-game by RCON admins using /createdealer. The params are: price, radius and name. Example: /createdealer 15000 30 Grotti Cars The radius is where the owner can create their cars in, and ONLY there. Anywhere outside the radius will give them an error.

ALL player-owned vehicles are using PVars also, not variables. The PVar system was said to be slow so keep MAX_OWNABLE_CARS under 20 to avoid any conflicts with lag.

All you need is the SII script. This script uses a built-in version of sscanf and dcmd (why dcmd? because it's not an include! i'm too lazy to actually use zcmd nowadays lol)

For now, players can only buy vehicles, and /park, /lock and /delete them. I've written this when I was bored one day, and I was so sleepy all I did was three commands. I'll be adding more in the future.

YOU MUST HAVE THESE FOLDERS IN YOUR SCRIPTFILES!

dealerships
dealerships/vehicles
ownedcars

Features:
• Allows RCON admins to create / destroy dealerships.
• Players can buy dealerships and collect money from it
• Players can check how much money they made from sales
• Players can create vehicles using /createcar in their dealership's radius
• You can own 3 cars (it can be changed by editing MAX_OWNABLE_CARS in the script)

Credits to:
• Slick for his SII file saving system.
• Dracoblue for the dcmd macro.
• ****** for the sscanf stock.
• SlashQ for the main scripting.

dealer.zip - Solidfiles (contains scriptfiles, .pwn and .amx, and include)
SII.inc - Solidfiles

dealer.pwn - Pastebin
SII.inc - Pastebin
Reply
#2

Just a little tip

Dont post many simple filterscripts, in 3 days. Post ONE BIG, with alot of unique and good functions. I think that it should surprise ppl more than these small ones. :P

#Ontopic: Else nice work.
Reply
#3

Quote:
Originally Posted by cruteX_modshop
View Post
Just a little tip

Dont post many simple filterscripts, in 3 days. Post ONE BIG, with alot of unique and good functions. I think that it should surprise ppl more than these small ones. :P

#Ontopic: Else nice work.
Oh shit, didn't know that, sorry.

Just getting rid of my scripts that I'm not using, so thanks for the tip!
Reply
#4

This Is really awesome which will help many people cause many people requests Dealerships system for this Server - Good Job (Repped)
Reply
#5

eehm i have a problem.. everytime when i restart server and then i go back to my dealership place and use /createcar then it says i dont own a dealership... and i am logged in... can u help me?
Reply
#6

This is sick. Look's cool.

Cheewy release.
Reply
#7

Good release mate keep it up
Reply
#8

Good Work i will use it
Reply
#9

also how would you know which cars to delete in files if you accidently made one?
Reply
#10

yeah it is good but can u please HELP ME!!!!!!! it is like now a stupid shit man...
Reply
#11

samp03dsvr_R2_win32(2)\gamemodes\prova.pwn(6) : fatal error 100: cannot read from file: "SII"
can you help me??
Reply
#12

HI, i have problem with /createcar - any time i get reply: * [Usage]: /createcar [model] [price] also i set: /createcar infernus 15000 ..

What is wrong?
Reply
#13

Quote:
Originally Posted by berkoff
View Post
HI, i have problem with /createcar - any time i get reply: * [Usage]: /createcar [model] [price] also i set: /createcar infernus 15000 ..

What is wrong?
I'm also having a problem with /createcar ...
Code:
if(vehicleid == INVALID_VEHICLE_ID) return SendClientMessage(creator, color_grey, "    The car couldn't be created !");
No matter what I try it doesn't spawn a vehicle, always getting that message that the car couldn't be created.
Tried atleast 10 vehicle id's, none worked.

Am I missing something here?
Reply
#14

Cool i really like it.
But some problem after i make all the DealerShip and make some cars i cant buy the cars.
I do YES and is not take money and not buy the car.
Reply
#15

Any help?
Reply
#16

The system its not finished . it missing commands and functions !
Reply
#17

One problem when a player buys a car for ex 50 grands money will decrease but when he logins in again money will increase.
Reply
#18

I always get this error!

C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(245) : error 017: undefined symbol "Delete3DTextLabel"
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(259) : error 017: undefined symbol "Delete3DTextLabel"
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(295) : error 025: function heading differs from prototype
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(307) : error 025: function heading differs from prototype
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(31 : error 025: function heading differs from prototype
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(395) : error 017: undefined symbol "Create3DTextLabel"
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(395) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(426) : error 017: undefined symbol "Create3DTextLabel"
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(426) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(520) : error 017: undefined symbol "Create3DTextLabel"
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(520) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(557) : error 017: undefined symbol "Delete3DTextLabel"
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(571) : error 017: undefined symbol "Delete3DTextLabel"
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(605) : error 017: undefined symbol "Delete3DTextLabel"
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(606) : error 017: undefined symbol "Create3DTextLabel"
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(606) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(709) : error 017: undefined symbol "Delete3DTextLabel"
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(710) : error 017: undefined symbol "Create3DTextLabel"
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(710) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(855) : error 017: undefined symbol "Create3DTextLabel"
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(855) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(871) : error 017: undefined symbol "ShowPlayerDialog"
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\RolePlay Server\filterscripts\dealer.pwn(87 : warning 235: public function lacks forward declaration (symbol "OnDialogResponse")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


16 Errors.

Helpplease!
Reply
#19

Do someone know why it makes more cars of the owner?
Reply
#20

not authorized to use the /createdealer command? I'm admin level 100000 on my server -_-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)