[FilterScript] Tee Dynamic Business. [New] [Major Bug Fixes] [22/02/2011]
#1

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.
Reply
#2

nice!!! thanks
Reply
#3

Quote:

Garison i am sorry for not adding you earlier.

Garsino may get mad over this Oo .

Nice one dude
Reply
#4

Lol i always thought he was Garison, hmm for some reason i thought so.
Reply
#5

Nice :] I'm testing it tomorrow.
Reply
#6

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
Reply
#7

nice FS dude ....i tested no bug
Reply
#8

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?
Reply
#9

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
Reply
#10

it dont load the Business when the server start
Reply
#11

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.
Reply
#12

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.
Reply
#13

Eh what? :S O_o !! What??
Reply
#14

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.
Reply
#15

Still can't understand you. If you did it fine, everything should work. Idk why it did not work. Well it works for me.
Reply
#16

No he dont work, try after server restart, sell bussines
Reply
#17

Quote:
Originally Posted by Plaktukas
View Post
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
Reply
#18

Thanks for correction
Reply
#19

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.
Reply
#20

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".
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)