*sid should be set _after_ clientconnect
This commit is contained in:
parent
ac8bf86c18
commit
5117831f34
2 changed files with 7 additions and 13 deletions
|
|
@ -1185,7 +1185,7 @@ void ClientCommand (edict_t *ent)
|
|||
{
|
||||
if (stricmp (command, "yapb") == 0 || stricmp (command, "yb") == 0)
|
||||
{
|
||||
int state = BotCommandHandler (ent, IsNullString (CMD_ARGV (1)) ? "help" : CMD_ARGV (1), CMD_ARGV (2), CMD_ARGV (3), CMD_ARGV (4), CMD_ARGV (5), CMD_ARGV (6), CMD_ARGV (0));
|
||||
int state = BotCommandHandler (ent, IsNullString (arg1) ? "help" : arg1, CMD_ARGV (2), CMD_ARGV (3), CMD_ARGV (4), CMD_ARGV (5), CMD_ARGV (6), CMD_ARGV (0));
|
||||
|
||||
switch (state)
|
||||
{
|
||||
|
|
@ -1193,10 +1193,6 @@ void ClientCommand (edict_t *ent)
|
|||
ClientPrint (ent, print_withtag, "Unknown command: %s", arg1);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
ClientPrint (ent, print_withtag, "CVar yb_%s, can be only set via RCON access.", CMD_ARGV (2));
|
||||
break;
|
||||
|
||||
case 2:
|
||||
ClientPrint (ent, print_withtag, "Command %s, can only be executed from server console.", arg1);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue