no message
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@426 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -445,6 +445,7 @@ void mousemove(int dx, int dy)
|
||||
|
||||
void selfdamage(int damage, int actor, dynent *act, bool gib)
|
||||
{
|
||||
if(!act) return;
|
||||
if(player1->state!=CS_ALIVE || editmode || intermission) return;
|
||||
damageblend(damage);
|
||||
demoblend(damage);
|
||||
@@ -696,10 +697,23 @@ void getmaster(char *pwd)
|
||||
strcpy_s(masterpwd, pwd);
|
||||
};
|
||||
|
||||
void mastercommand(int cmd, int arg1)
|
||||
void mastercommand(int cmd, int a)
|
||||
{
|
||||
addmsg(1, 3, SV_MASTERCMD, cmd, arg1);
|
||||
addmsg(1, 3, SV_MASTERCMD, cmd, a);
|
||||
};
|
||||
|
||||
COMMAND(getmaster, ARG_1STR);
|
||||
COMMAND(mastercommand, ARG_2INT);
|
||||
void showmastermenu(int m) // 0=kick, 1=ban
|
||||
{
|
||||
int menu = (m == MCMD_KICK ? 3 : 4);
|
||||
purgemenu(menu);
|
||||
|
||||
loopv(players)
|
||||
{
|
||||
if(players[i]) menumanual(menu, i, players[i]->name, (char *) i);
|
||||
};
|
||||
menuset(menu);
|
||||
};
|
||||
|
||||
COMMANDN(masterlogin, getmaster, ARG_1STR);
|
||||
COMMAND(mastercommand, ARG_2INT);
|
||||
COMMAND(showmastermenu, ARG_1INT);
|
||||
Reference in New Issue
Block a user