Hello There, Guest! Login or Register


Property Handler
#5
(03-04-2008, 07:51 PM)pdescobar link Wrote: Yeah, I was thinking the GUI would only be an option for admins when creating/modifying props. Since the main interaction players have is a simple "buy" or "sell" command, a GUI would be needless overkill.
Icon choice is an interesting idea and is similar to an odd thought I had last night. SA already has both green and blue house icons. One potential use for these is to have props marked with the green icon if they are buyable (unowned or owned more than 10 mins) and the blue icon if they are not (owned less than 10 mins or perhaps disabled). Haven't really considered how monitoring the state and switching icons will impact server performance though; it was just something that popped into my head. For "custom" icons that don't change, that is certainly something worth considering and shouldn't be at all hard to implement.

As for limited-access props, do we want to support a "level" system (e.g. donators are higher level than regulars so they can buy anything marked for them and also anything marked for regulars) or a flag system (e.g. prop X can be bought only by "regulars", prop Y only by "donators", prop Z by both)? The latter is obviously more flexible but also a bit more complicated.

Your icon idea is pretty nice, however, I don't think it would work. People usually don't pay alot of attention to the icon and walk in regardless, so a message might be more desirable. The level system itself, well, I recon the best way to implement that would be to check the player's information array which will be stored in the getElementData arrays. Documentation for that will follow soonish on the wiki, however, things like whether a player is a regular and their online time will certianly be stored there.

Using a flags system don't seems like something that's really required at this point, perhaps for later updates. Using rights for this.. well, I don't know, perhaps some kind of special properties for donators only using a IS_DONATOR-key or something.
Reply


Messages In This Thread
Property Handler - by pdescobar - 03-04-2008, 03:20 AM
Re: Property Handler - by Peter - 03-04-2008, 10:24 AM
Re: Property Handler - by pdescobar - 03-04-2008, 07:51 PM
Re: Property Handler - by tomozj - 03-04-2008, 09:00 PM
Re: Property Handler - by Peter - 03-05-2008, 09:52 AM