Author Topic: [SCRIPT] Police Computer  (Read 4014 times)

so it's a thing that allows you allow/disallow users from using cars..? or apply arbitrary tags to users.. kind of like vce, but not exactly, right?

could you give some more examples of how this would be used, please?
It's a database basically. Like, a police computer in real life doesn't restrict people from using cars but it helps police to know who has a license or not. It could be used to store information about anything, like a driver's license, pilot's license, criminal record, ownership of a cherry pie, etc. by creating a category and tag.

For example, you could create a category for "Pilot's_License," and set the default tag to none. Now every time you search for an ID, there will be the tag "Pilot's_License - None." Then you can edit that. For example, lets say that Blus, ID 34021, gets his pilot's license. We would go to edit Blus's tags in the GUI and replace "None" with "Active," or we could type /edittag 34021 Pilot's_License Active. Then, instead of saying "Pilot's_License - None," it would say "Pilot's_License - Active"

A seemingly simple script, although it would be of tremendous value in well-made RP servers, or even not. For example, it could be used for records, reputations, bans, offenses, admin, game progress, etc.

Lol I keep accidentally locking the topic when I try to go to page 2.

Does anyone have anything they would change about this request? Any tips for getting it made? Any constructive criticism, questions, suggestions, and talk about this is welcome. I appreciate all comments, including slightly masked bumps such as this. 

« Last Edit: January 21, 2014, 10:37:45 PM by Who Cares99 »

How hard of a script is this make? I know it would be hard with a GUI but how hard is this:
Also, chat commands (plan B):
  • /searchID [ID] - Searches for the BL_ID in the database. It says the BL_ID, online/offline, and tags in the chat for that ID.
  • /listcategories - Lists the tag categories.
  • /createcategory [category name] [default tag] - Creates a category using the name and default tag that you list. (Host only)
  • /removecategory [name] - Removes the category (Host only)
  • /listeditrights - Lists everyone with edit rights
  • /granteditrights [ID] - Gives that ID the right to edit the computer. (Host only)
  • /revokeeditrights [ID] - Revokes that ID's right to edit the computer.
  • /edittag [ID] [Category Name] [Tag] - Changes the tag for that ID, in that category, to what you put in the third space.
  • /toggleaccess - Toggles whether or not everyone can access the computer. When you type the command, it sends a chat message to the server saying "Access to the computer is now: ["Public or "Restricted"]"
  • /listaccessrights - Lists everyone who has the right to access the computer.
  • grantaccessrights [ID] - Gives that ID the right to access the computer. (Host only)
  • /revokeaccessrights [ID] - Revoke's that ID's right to access the computer
  • /policecomputerhelp - Lists all of the commands above
If you try to type any of these commands besides /policecomputerhelp and you don't have permission, it says "You don't have permission to do this, sorry."
If you type a command but it can't find what you are trying to do, for example, if you typed the wrong ID when searching, it says "Sorry, but the computer is unable to find what you are searching for. Please review your command."

The list of IDs that you can search for is made up of every ID that has ever spawned on the server.

Bump (x3) (Combo bump)
« Last Edit: January 22, 2014, 11:45:28 PM by Who Cares99 »

I feel really guilty bumping this so much, but I really want this mod...

i speak from experience when i say that ingame utilties (like computer database systems) in an rp are totally useless
wait wait, not done yet

i've played ss13 for a few years now and they have characters that run around on a space station
in that game they also have a very detailed health system, including medical records

one tiny problem
no one loving updates the medical records

it's horrible
it leaves it to like one guy who is one in five dozen rounds, and the stuff doesn't persist between rounds

however

blockland is not like that, it can have 'rounds' that last a lot longer, and... i dunno what else
however, you need an actual reason for this stuff to actually happen.

for that to happen, this script would need event and script based utility functions -
onActivate > Client > CheckDB [ Pilot's_License ] [ == ] [ Active ]
onDBCheckSuccess > Self > SpawnVehicle [ Stunt Plant ]


ta forgetin da now it forgetin works and is actually useful beyond "rp" that almost no one will use

take the event checks so you can make this database reflect changes ingame, and then have a REALLY loveY GUI
not like slayer lovey
i mean like IT LOOKS LIKE A COMPUTER OMG lovey - computer terminal for nerds, but a lovey gui for normal people


this mod could be good, but "just a db" isn't enough. just a db is pretty straightforward -
(code stuff)
based on settings on the computer, generate a default scriptobject
when a client joins, duplicate said scriptobject and attach to the player via reference
save clients state in text file
make a bunch of servercmds to modify the default and specific people
you're done with the base stuff
events are checks
gui would be difficult... but what if we did it in a browser?? a website the blockland server runs, allows a web interface to the "database"
those websites man, they can get REALLY loveY

yeah this went on too long, i've been writing stiff school papers and stuff so i had to break my return key again
oh and i would take this on if it werent for the fact that i really can't work on it

You contradicted yourself twice so I'm not sure what you are trying to say, but I think I have an idea of what you mean. However, a database is all I need. I need this so that I can let people see certain info about others, and I don't have to remember it or be there to tell it to someone. Although I think you understand the uses, this can be used for things other than stuffty Blockland RPs. Some of these include the three good RPs, saving info for admins (this guy can be told the password, this one can have a car, this one is VIP), and any server specific info you need. I don't know if I would want a GUI, because it makes the mod need clients to download it and would make the mod take a lot longer to make.

I support this. WhoCares' RP is well made and isn't full of RDMing handicaps. Would be useful.