22.02.2011, 14:41
(
Последний раз редактировалось Tee; 14.04.2012 в 19:41.
)
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. Intruduction
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.