View Single Post
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 05-25-2013 , 05:39   Re: [ANY] Admin Troll
Reply With Quote #7

Quote:
Originally Posted by Dr. McKay View Post
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'.
Drixevel is offline