[FilterScript] [FS]Property-System
#1

[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:
  • Unlimited properties
  • Saves property-owners even when server restarts.
  • Mini-account system
  • Simple Mini-map streamer (only 1 mapicon (closest property) visible)
  • Easy to use
How to instal:
  • Download PropertySystem.rar
  • Extract all files in the right folders
  • Add 'Properties' in your server.cfg after 'filterscripts'
  • Add properties in the 'PropertyInfo.txt'-file.
  • Start this filterscript
How to add properties:
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
NameOfProperty: I don't think this param needs more explanation.
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:
  • /propertyhelp or /prophelp
  • /buyproperty or /buyprop
  • /sellproperty or /sellprop
  • /myproperties or /myprops
  • /sellallproperties [Rcon-admin-only]
  • /register [You can edit this command]
  • /login [You can also edit this command

Configuration:
At the top of this filterscript you can change some settings:
  • #define MAX_PROPERTIES 100 (If you have more than 100 properties, change it)
  • #define MAX_PROPERTIES_PER_PLAYER 4 (needs no further explanation)
  • #define UNBUYABLETIME 15 (Number of minutes players can't buy a propertie after when it's bought)
  • #define ENABLE_LOGIN_SYSTEM 1 (If '1' then players have to login before they can buy and sell properties)
  • #define ENABLE_MAP_ICON_STREAMER 1 (if '1' the streamer is enabled, if '0' then its disabled
  • #define REGISTER_COMMAND "/register" (Change this command if you already use a /register command in your gamemode
  • #define LOGIN_COMMAND "/login" (Same as above)

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<=



Reply


Messages In This Thread
[FS]Property-System - by Sandra18[NL] - 05.06.2008, 19:56
Re: [FS]Property-System - by natj - 05.06.2008, 20:06
Re: [FS]Property-System - by Mikep - 05.06.2008, 23:33
Re: [FS]Property-System - by natj - 05.06.2008, 23:35
Re: [FS]Property-System - by bynike - 06.06.2008, 01:56
Re: [FS]Property-System - by [HiC]TheKiller - 06.06.2008, 02:29
Re: [FS]Property-System - by mave_man - 06.06.2008, 05:31
Re: [FS]Property-System - by Masj - 06.06.2008, 09:30
Re: [FS]Property-System - by OKStyle - 06.06.2008, 10:27
Re: [FS]Property-System - by mariusmarius - 06.06.2008, 10:54
Re: [FS]Property-System - by Sandra18[NL] - 06.06.2008, 16:37
Re: [FS]Property-System - by Giacomand - 06.06.2008, 22:48
Re: [FS]Property-System - by mariusmarius - 07.06.2008, 07:44
Re: [FS]Property-System - by SaW_[VrTx] - 07.06.2008, 10:24
Re: [FS]Property-System - by SaW_[VrTx] - 07.06.2008, 17:06
Re: [FS]Property-System - by Sandra18[NL] - 07.06.2008, 17:20
Re: [FS]Property-System - by seven - 09.06.2008, 13:15
Re: [FS]Property-System - by mariusmarius - 09.06.2008, 13:27
Re: [FS]Property-System - by seven - 09.06.2008, 13:31
Re: [FS]Property-System - by Gudraz - 11.06.2008, 12:29
Re: [FS]Property-System - by Rykker - 12.06.2008, 15:06
Re: [FS]Property-System - by nate062692 - 12.06.2008, 16:11
Re: [FS]Property-System - by MKMS - 12.06.2008, 19:45
Re: [FS]Property-System - by Slash991 - 13.06.2008, 08:48
Re: [FS]Property-System - by cruising - 07.07.2008, 19:07
Re: [FS]Property-System - by startex - 08.07.2008, 20:42
Re: [FS]Property-System - by simonmatzeder - 13.07.2008, 09:42
Re: [FS]Property-System - by DauerDicht - 25.07.2008, 08:57
Re: [FS]Property-System - by DDUB - 25.07.2008, 17:52
Re: [FS]Property-System - by Sk8erBoi - 26.07.2008, 07:41
Re: [FS]Property-System - by [DFE] - 30.06.2009, 10:55
Re: [FS]Property-System - by Serediucr - 30.06.2009, 12:14
Re: [FS]Property-System - by [DFE] - 30.06.2009, 13:09
Re: [FS]Property-System - by Pawno_Master - 06.07.2009, 12:09
Re: [FS]Property-System - by Rizard - 12.07.2009, 21:45
Re: [FS]Property-System - by Seb_Street - 21.07.2009, 08:24
Re: [FS]Property-System - by CJ101 - 21.07.2009, 08:41
Re: [FS]Property-System - by doi4in - 23.07.2009, 00:02
Re: [FS]Property-System - by stevestelford - 02.08.2009, 20:13
Re: [FS]Property-System - by nuriel8833 - 03.08.2009, 05:10
Re: [FS]Property-System - by Chrillzen - 05.03.2012, 04:26
Re: [FS]Property-System - by suni - 30.08.2015, 18:03
Re: [FS]Property-System - by DandyCorleone - 19.06.2016, 12:06
Re: [FS]Property-System - by StackedPizza - 23.06.2016, 01:26

Forum Jump:


Users browsing this thread: 2 Guest(s)