Fixed amb564 - sm_ban was not actually banning due to the client being kicked before the banid command was executed. Thus the userid used with banid was no longer valid. Changed this to ban via authid/steamid instead.
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401150
This commit is contained in:
parent
54c3e17a14
commit
921bf64df2
@ -229,7 +229,8 @@ public Action:Command_Ban(client, args)
|
||||
reason[0] = '\0';
|
||||
}
|
||||
|
||||
new userid = GetClientUserId(clients[0]);
|
||||
decl String:authid[64];
|
||||
GetClientAuthString(clients[0], authid, sizeof(authid));
|
||||
GetClientName(clients[0], arg, sizeof(arg));
|
||||
|
||||
/* Fire the ban forward */
|
||||
@ -269,7 +270,7 @@ public Action:Command_Ban(client, args)
|
||||
strcopy(reason, sizeof(reason), "Banned");
|
||||
}
|
||||
|
||||
ServerCommand("banid %d %d", time, userid);
|
||||
ServerCommand("banid %d %s", time, authid);
|
||||
KickClient(clients[0], "%s", reason);
|
||||
|
||||
if (time == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user