SA-MP Forums Archive
[FilterScript] Dynamic Dealership 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] Dynamic Dealership System (/showthread.php?tid=299738)

Pages: 1 2


Dynamic Dealership System - SlashQ - 27.11.2011

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


Re: Dynamic Dealership System - NessaHD - 27.11.2011

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.


Re: Dynamic Dealership System - SlashQ - 27.11.2011

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!


Re: Dynamic Dealership System - -CaRRoT - 27.11.2011

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


Re: Dynamic Dealership System - niels44 - 26.12.2011

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?


Re: Dynamic Dealership System - Astralis - 26.12.2011

This is sick. Look's cool.

Cheewy release.


Re: Dynamic Dealership System - Arsham7 - 26.12.2011

Good release mate keep it up


Re: Dynamic Dealership System - WarToFar - 26.12.2011

Good Work i will use it


Re: Dynamic Dealership System - Arsham7 - 26.12.2011

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


Re: Dynamic Dealership System - niels44 - 27.12.2011

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


Re: Dynamic Dealership System - Stefano18 - 12.02.2012

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


Re: Dynamic Dealership System - berkoff - 14.02.2012

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

What is wrong?


Re: Dynamic Dealership System - Roperr - 15.02.2012

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?


Re: Dynamic Dealership System - LA-Boy - 15.02.2012

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.


Re: Dynamic Dealership System - Roperr - 16.02.2012

Any help?


Re: Dynamic Dealership System - Fir3On - 16.02.2012

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


Re: Dynamic Dealership System - oscar7610 - 18.02.2012

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


Re: Dynamic Dealership System - Jkrawr - 11.04.2012

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!


Re: Dynamic Dealership System - TiggaNigga - 13.04.2012

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


Re: Dynamic Dealership System - DoubeL - 14.08.2012

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