|
Commands
|
| Smiley |
Posted on 06/21/2011 02:54:06
|
Numpty

Posts: 1045
Joined: 06.04.11
|
I whipped up a script for text based commands today. Basically instead of bringing up the console and typing "sv_ban 1 1h", you would just hit chat and type in "/ban 1 1h". The format for these commands is consistent with that of the regular console commands. The only difference is that you can do it in chat and without having to type in "rcon" or "sv_". The obvious issue here is that this won't work with commands that return information like sv_players. At least not yet. As usual, only admins (as per the admin list) can use these commands. I also threw in a couple of new commands as a sort of test.
The script:
http://pastebin.c...
Supported Commands:
sv_ban 1 1h = /ban 1 1h
sv_changeteam 1 = /changeteam 1
sv_kick 1 = /kick 1
sv_kill 1 = /kill 1
sv_invis 1 10 = /invis 1 10
sv_map_next = /map_next
sv_map_reset = /map_reset
sv_setammo 1 1000 = /setammo 1 1000
sv_setspeed 1 2 = /setspeed 1 2
sv_teleport 1 10, 10, 10 = /teleport 1 10 10 10
New Commands:
/mute 1 = Mutes player 1 for current round.
/suspend 1 = Kills player 1 and prevents him from respawning.
/teleport 1 2 = Teleports player 1 to player 2. Support for vehicles has been added.
/unmute 1 = Allows player 1 to type again.
/unsuspend 1 = Allows player 1 to spawn again.
This next one is pretty extensive and can actually be used by anyone. However, non-admins can only see their own info and not that of other players.
/info 1 = Returns all sorts of information on player 1. Here is a screenshot to demonstrate:

E:
Added admin level support. As usual, you will only have access to commands assigned to your admin level.
Added more commands.
Edited by Smiley on 06/26/2011 15:40:41 |
| |
|
|
| ZA Bvigil |
Posted on 06/21/2011 02:59:44
|

Admin

Posts: 2161
Joined: 15.11.10
|
sounds cool

 |
| |
|
|
| ZA numpty |
Posted on 06/21/2011 03:01:17
|

ShawnPeezy

Posts: 4430
Joined: 16.11.10
|
nice |
| |
|
|
| ZA RedXlll |
Posted on 06/21/2011 03:25:40
|

Numpty

Posts: 1181
Joined: 30.12.10
|
I wish i could mute a few people on the server id have a hay day.

RedXIII's Kill Count
Bots:3
Douche Bags:20
Last Updated: 11/14/11 |
| |
|
|
| Devase |
Posted on 06/21/2011 04:44:14
|

I got a big blue star for posting. i must be special

Posts: 1949
Joined: 30.03.11
|
good job


[Use this link to sign up for League of Legends!] |
| |
|
|
| ninja |
Posted on 06/21/2011 06:19:45
|

Super Admin

Posts: 4174
Joined: 15.11.10
|
Wow, pwnt.
When can I try these out?


My brain is open.
- Paul Erdős |
| |
|
|
| RazNinjaMike |
Posted on 06/21/2011 06:49:08
|

Moderator

Posts: 4586
Joined: 20.11.10
|
Smiley...............You Da Man! |
| |
|
|
| ZA BlackAdder |
Posted on 06/21/2011 10:41:50
|

Super Admin

Posts: 2419
Joined: 18.11.10
|
only on ur sever? |
| |
|
|
| Smiley |
Posted on 06/21/2011 11:02:53
|
Numpty

Posts: 1045
Joined: 06.04.11
|
I'm still adding commands/polishing the script. When it is completely finalized I'll put it on my server. Of course, Slim is free to put it on his servers if he wants as well. |
| |
|
|
| ZA numpty |
Posted on 06/21/2011 13:17:53
|

ShawnPeezy

Posts: 4430
Joined: 16.11.10
|
So, you wouldn't even have to open up rcon? You would just say in the chat bot ban 1 1h and it would ban them for 1 hour? |
| |
|
|
| SoD hobo |
Posted on 06/21/2011 16:07:48
|
Senior Member

Posts: 342
Joined: 04.03.11
|
perhaps you can make it so in the info, it shows your KDR stats but overall from every time in the server?


YES THOSE ARE BOTH ME! |
| |
|
|
| Smiley |
Posted on 06/21/2011 16:18:53
|
Numpty

Posts: 1045
Joined: 06.04.11
|
@Numpty: Yes. All you have to do is type into chat.
@Hobo: Hopefully coming with the next release of Phasor. |
| |
|
|
| RazNinjaMike |
Posted on 06/21/2011 17:09:24
|

Moderator

Posts: 4586
Joined: 20.11.10
|
i wonder if oxide play zombies.. |
| |
|
|
| ZA Googly |
Posted on 06/22/2011 09:05:11
|

Numpty

Posts: 1251
Joined: 14.11.10
|
Pretty nifty idea. I like it! Good job smiley
I hate lag |
| |
|
|
| Smiley |
Posted on 06/26/2011 15:41:30
|
Numpty

Posts: 1045
Joined: 06.04.11
|
Slim, in case you're still interested, I've put the latest version of the script in the OP. It has a few bug fixes and support for more commands. |
| |
|
|
| ZA rodney |
Posted on 06/26/2011 19:32:59
|

Member

Posts: 120
Joined: 14.06.11
|
That mute command would be amazing. So many times players carry on/rant in chat but are playing game which I don't think gets a kick, but mute for the remaining time would be perfect.
I take all opportunities to make myself awesome.

 |
| |
|