admin revisited, force team

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1028 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-05-30 20:09:10 +00:00
parent 64fac68990
commit 0ee8eb95d1
6 changed files with 98 additions and 11 deletions
+8
View File
@@ -100,6 +100,13 @@ void connects(char *servername, char *password)
else conoutf("\f3could not connect to server");
}
void connectadmin(char *servername, char *password)
{
if(!password) return;
connects(servername, password);
if(clienthost) addmsg(SV_SETADMIN, "ris", 1, password); // in case the server is not private locked or pwd protected
}
void lanconnect()
{
connects(0);
@@ -182,6 +189,7 @@ void echo(char *text) { conoutf("%s", text); }
COMMAND(echo, ARG_VARI);
COMMANDN(say, toserver, ARG_VARI);
COMMANDN(connect, connects, ARG_2STR);
COMMAND(connectadmin, ARG_2STR);
COMMAND(lanconnect, ARG_NONE);
COMMANDN(disconnect, trydisconnect, ARG_NONE);