Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011] -
Tee - 22.02.2011
Dynamic Business Filterscript
Intruduction
Hello SA-MP members. I have seen where there are posts about "Dynamic Businesses" , so i decided to put the one from my GM into a FS and post it so you all can have it to use.
Commands:
/createbus [busid] [price] [payout] [name] (Creates a business at your location)
/sellbus (Allows the owner to sell the busness)
/debus [id] (Removes an owner from his business (it's like /sellbus but for RCON admins))
/deletebusiness [busid] (Deletes a business. Used only by RCON admins)
Discription:
This FS was created entirely from scratch. It creates a business at your location and you will need to be logged into
RCON to use the
createbus command. The businesses are buyable and the player will get the payout ever 30 mins.
To change the payout time. You need to convert ms (miliseconds) into Minutes.
1000ms in Pawn = 1 second. Hence 60000ms = 1 minute. (I think you can do the rest). That covers the Discription.
Bugs: None.
Credits:
Zeex - Zcmd
Dracoblue - Dini
****** - Sscanf2
Tee - The FS
Incognito- Streamer plugin.
Brian - Helping me fine tuning.
Garison - His dynamic House system, played an integral part in this script. I used examples off it to use some of what i have created. Garison i am sorry for not adding you earlier.
Arshavin - Found 2 bugs that i did not see. Thanks alot.
Bug Fixes:
1 .In this version, there is no need for a /buybus command. Just walk into the checkpoint and the dialog will appear for you to buy the business.
2. I also made it so that the name of the business is that last thing you will type that means that you can have a name like: Clown's Pocket and not Clown's_Pocket.
3. No need to reload the FS right after you create a business in order to buy it.
4. All bugs fixed in the last version.
Downloads:
Click Here (2.0) <-- This version has the fix with payday not working. (NOT Recommended)
Click Here (Last)<-- This version is the last and has all bugs fixed. (Recommended)
I've stopped working on this, since I've made a MySQL version of it, and integrated it into my gamemode. If you want to see it, you can PM me or come in my server (188.165.253.171:7786) and take a look.
Re: Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011] -
justsomeguy - 22.02.2011
nice!!! thanks
Re: Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011] -
Zh3r0 - 22.02.2011
Quote:
Garison i am sorry for not adding you earlier.
|
Garsino may get mad over this Oo .
Nice one dude
Re: Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011] -
Tee - 22.02.2011
Lol i always thought he was Garison, hmm for some reason i thought so.
Re: Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011] -
Sasino97 - 22.02.2011
Nice :] I'm testing it tomorrow.
Re: Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011] -
thimo - 23.02.2011
Nice script ~edit: it doesnt work after i restarted it doesnt appear help please?
if i start the server it just says Loaded busines 0
Re: Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011] -
...:Lucian:... - 23.02.2011
nice FS dude ....i tested no bug
Re: Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011] -
peterory - 23.02.2011
very nice=w=
i wan't that a lot time
and do you know how to make Npc
can you make a attacking npc filterscript?
Re: Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011] -
Kyro - 23.02.2011
Quote:
Originally Posted by thimo
Nice script ~edit: it doesnt work after i restarted it doesnt appear help please? if i start the server it just says Loaded busines 0
|
i think u forgot the "Business" file create it in the "SCRIPTFILES" folder in your server directory hope this help you
-------------------------------------------------------------------------------------
it dont work every thing is ok but when the dialog for buying appear i choose buy but nothing happen just the dialog dissapears and nothing plz help i also restarted the server
Re: Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011] -
Kyro - 24.02.2011
it dont load the Business when the server start
Re: Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011] -
Tee - 24.02.2011
Lol i just looked over the script and realized that i did not give some of the locations the extension (Some of them had "Business/%i.ini" while some only had "Business/%i" no extension. Extension should have been ".ini"
1. To fix the problem, open the script, press ctrl + h.
2. In the top line put "Business/%i" with the quotation marks.
3. The in the 2nd line put "Business/%i.ini" with the quotation marks.
4. Press ok then press yes to all.
5. Compile then the problem should be fixed.
OR
Click here to download the fixed script.
Re: Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011] -
Plaktukas - 25.02.2011
After server restart, on fix version, texdraw loadings, and on texdraw write with bussines is my, but when i sell it write , i dont have a bussines.
Re: Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011] -
Tee - 25.02.2011
Eh what? :S O_o
!! What??
Re: Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011] -
Plaktukas - 26.02.2011
Sorry, bad english, but when i restart my server or reloading filescript i loose my bussines.
He writes that my, but i cant sell it and i can buy new.
Re: Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011] -
Tee - 26.02.2011
Still can't understand you. If you did it fine, everything should work. Idk why it did not work. Well it works for me.
Re: Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011] -
Plaktukas - 26.02.2011
No he dont work, try after server restart, sell bussines
Re: Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011] -
Kyro - 26.02.2011
Quote:
Originally Posted by Plaktukas
After server restart, on fix version, texdraw loadings, and on texdraw write with bussines is my, but when i sell it write , i dont have a bussines.
|
i will explain when i restart the server the business loads ok but when i /sellbus it tells me that i dont own a business
but it writes on the business textdraw that the owner is me but i cant sell please help i downloaded the fixed version
Re: Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011] -
Plaktukas - 26.02.2011
Thanks for correction
Re: Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011] -
Sasino97 - 26.02.2011
I tested it, but it's useless, because you can't do nothing with it, you can only buy it. But you can't enter or earn money. And what's the payout for? When I enter a bought business's checkpoint it doesn't take money.
Re: Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011] -
Tee - 26.02.2011
It might be useless to you. When you create it, do you see the 3DText and on that 3DText there is the word "payout" when you set the time in the Timer you will get the amount of money following the word "payout".