no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@414 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2006-09-20 19:33:23 +00:00
parent ffb2b62f36
commit 758aec9aea
8 changed files with 106 additions and 44 deletions
+17
View File
@@ -686,3 +686,20 @@ void flagaction(int flag, int action)
default: break;
};
};
string masterpwd;
void getmaster(char *pwd)
{
if(!pwd[0]) return;
if(strlen(pwd)>15) { conoutf("the master password has a maximum length of 15 characters"); return; };
strcpy_s(masterpwd, pwd);
};
void mastercommand(int cmd, int arg1)
{
addmsg(1, 3, SV_MASTERCMD, cmd, arg1);
};
COMMAND(getmaster, ARG_1STR);
COMMAND(mastercommand, ARG_2INT);