06.06.2008, 10:54
Quote:
Originally Posted by =>Sandra<=
[FS]Property-System
Finally, a property-system made by me that DO save the properties when you disconnect or when server restarts My previous system was an include, this one is a filterscript. It saves all properties in 1 file and it is easy to use because you don't have to use all kind of difficult functions. Features:
All properties are collected in just 1 file: "PropertyInfo.txt" Every property uses 1 line and has 9 params: Код:
NameOfProperty, Xcoord, Ycoord, Zcoord, Price, Earning, Owner, IsBought, UnbuyableTime Xcoord, Ycoord, Zcoord: This is the location of the property (where the pickup will be spawned) Price: Players will have to pay this amount of cash if they want to buy this property. Earning: The owner of this property will recieve every minute this amount of cash Owner: This is the name of the player who owns the property. (If property is not owned, the name is "Nobody" IsBought: This value is '1' when de property is bought, and '0' when property is not bought. UnbuyableTime: When a property get bought, nobody can buy it for (default) 15 minutes. (Unless it's sold within this time). This param stores the number of minutes. Commands:
Configuration: At the top of this filterscript you can change some settings:
About the account system: To prevent people joining the server with somebody elses name and sell the properties of that player, you have to register your name and secure it with a password. You cбn disable this account system, but i recommend to enable it. If you have enough scripting-experience, you can implement this filterscript into your gamemode so players don't have to login twice. (if you already have an account-system in your gamemode). Well, this account system stores all players in 1 file and only contains their name and their password (password is encoded!!) About the minimap-streamer: This is a very simple one: It only shows one icon at a time. In this case only the nearest property. The icons are 'houses'. A red house if the property is bought, and a green house if it's not bought. Screenshots: Download: PropertySystem.rar (MediaFire) Direct mirrors are welcome P.s. In the property-file (PropertyInfo.txt), i created already 65 properties. If you're going to use this filterscript in your server, don't forget to give me credits, thank you! Have fun with it =>Sandra<= |