Hello There, Guest! Login or Register


Subcommands
#1
tomozj actually came up with the idea, but I like this more in another way:

Quote:[22:14:22] <@tomozj> what about // caps tomozj
[22:14:35] <@tomozj> just /p does stuff, diff cmd for messages
[22:14:38] <@Nakebod> since almost every admin command , related to a player, is available in /p, some with a short alias
[22:14:53] <@tomozj> ./m? :+
[22:14:55] <@Nakebod> whats the dif with // caps tomozje/id , or /p id/name caps
[22:15:19] <@Nakebod> except that /p is common for everything

We could use // for subcommands. Let me explain this by an example.

For instance, we add /check [playerid]. If a crewmember types this he watches a player like you normally would with /watch, but you get access to subcommands. The subcommands for this command are:
Code:
// watch
// stopwatch
// nuke
// tp (is actually an /mtp)
// mute
// unmute
// cash [amount]
// kick [reason]
// ban [reason]
etc.

If you've used the /check command you have access to these commands. This is easy, because you don't have to remember the playerid or name. It's also faster because it saves a bit of typing.
If you want to 'get out' of the command you can just type another command, like /taxi 0, or use /stopcheck.

This could be used for other stuff as well. Another example is properties;
/property
Code:
// name [name]
// price [price]
// earnings [percentage]
// distance [meters]

Or even the new LVP 2.90 Race builder could use this.

I don't know if I made everything clear, it looks like an easy way to quickly enter a command without remembering id's or names, and in the process saving some time. The /check-command could be a whole new feature request. I've made a request like this about a year ago and I still like the idea of having one command to check cheaters for all different kinds of cheats. The /check-command could be expanded with a textdraw on the bottom of the screen (like in a /race) that shows some information about the player you're currently checking. Stuff like the amount of properties, if or how long a player has been registered, or even spawnweapons. If there's 150+ players on the server and there aren't much admins around this could make checking cheaters more effective.

Implementing this is quite a bit of work, but shouldn't be too hard. There could be an array for all players called "inCommand" which saves the last command (that uses subcommands) along with a player id or property id. In OnPlayerCommandText there could be a check if the player is in a command. If not return false, if so check authorization and do the subcommmand.

If the /check-command is implemented too there could be a simple modmessage like Chillosophy [13] is currently checking Some_Idiot [37]
Reply
#2
This indeed, could be really useful for admins and make things a lot easier. Personally, I hate the /p system, and with a system like this, especially without the requirement of id's, would be nice and easy for admins. At the moment however, we have quite a lot of features to complete, so at the moment such a system would have a low priority.

Anyway, love the idea  d:)b
Reply
#3
Awesome. I don't mind that it's low priority, you shouldn't add anything new to 2.90 anyway :)
Reply
#4
I like this. I found that Nakebod had a valid point when trying to discuss, but the idea was that these commands were separate to /p, kinda. Dunno..

But this is brilliant. I was oddly enough actually thinking of an environment where you could check cheaters, and if they were clean then you could set them back to their original state. That's another story though - this would be useful.
Reply