RUNNING WITH RIFLES http://www.runningwithrifles.com/phpBB3/ |
|
In Game Admin and Commands http://www.runningwithrifles.com/phpBB3/viewtopic.php?f=6&t=1105 |
Page 1 of 1 |
Author: | {SAS}DocStone [ Wed Apr 03, 2013 5:24 pm ] |
Post subject: | In Game Admin and Commands |
Pasik, how hard would it be to implement a system where server commands can be input in-game by certain players with Admin capabilities? For example: On our server a player using the username {SAS}DocStone would require a password to join, which would be set up on the remote box. Once logged in, then by using the standard chat interface he would have the ability to give certain commands which would be picked up by the server: /restart map - to restart map /map{n} - to change to map{n} /declare winner [faction] - declare one side a winner /switch [playername] - switch a player to the other team You could possibly add in all the rest of the commands as well, if required. This would mean that for events like Saturday's, I could have set Jack up as an admin on the server so he could switch maps etc without hoping I would appear and RDP into the box and break things (haven't tried changing the commands.txt file yet, server hasn't been empty long enough for me to fart around with things, which is amazing!) ![]() Yeah, so just a couple of thoughts from a server admin side, would make life a lot easier, and would allow me to play the game instead of alt+ tabbing out the whole time and dying ![]() |
Author: | pasik [ Wed Apr 03, 2013 5:58 pm ] |
Post subject: | Re: In Game Admin and Commands |
{SAS}DocStone wrote: Pasik, how hard would it be to implement a system where server commands can be input in-game by certain players with Admin capabilities? For example: On our server a player using the username {SAS}DocStone would require a password to join, which would be set up on the remote box. Once logged in, then by using the standard chat interface he would have the ability to give certain commands which would be picked up by the server: /restart map - to restart map /map{n} - to change to map{n} /declare winner [faction] - declare one side a winner /switch [playername] - switch a player to the other team You could possibly add in all the rest of the commands as well, if required. This would mean that for events like Saturday's, I could have set Jack up as an admin on the server so he could switch maps etc without hoping I would appear and RDP into the box and break things (haven't tried changing the commands.txt file yet, server hasn't been empty long enough for me to fart around with things, which is amazing!) ![]() Yeah, so just a couple of thoughts from a server admin side, would make life a lot easier, and would allow me to play the game instead of alt+ tabbing out the whole time and dying ![]() In 0.85, stuff like this could be done in the metagame script if I get everything hooked up right. The metagame component receives chat messages as events so the script could detect commands through the chat system and then send appropriate commands back to the game server. The script can use the chat sender id to query more data about the sender, name, profile id, rank, whatever, and determine if the sender has the permission to call such commands. Command such as switch would not be possible yet as the game doesn't support live team change. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |