Quote:
Originally Posted by Dr. McKay
More specifically, you'd want to use something like this:
PHP Code:
ServerCommand("sm_ban #%d %d Trolled", GetClientUserId(client), GetConVarInt(BanTime)); ServerCommand("sm_kick #%d Trolled", GetClientUserId(client));
Although ServerCommand is evil. For kicking, use KickClient. For banning, use BanClient or SBBanPlayer (if using SourceBans).
Also, what does this plugin do? I wasn't able to discern what it does from reading the original post.
|
Assuming you haven't read the source code, the command is used by an admin which selects a certain player and that player receives a message on their screen saying they now have admin, type this command to open the menu and when they do, it bans them on the spot for the reason 'douche'.