Raised This Month: $ Target: $400
 0% 

[ANY] Admin Troll


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Plugin ID:
3655
Plugin Version:
1.1.4
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    6 
    Plugin Description:
    Troll players into kicking or banning themselves
    Old 05-25-2013 , 01:13   Re: [ANY] Admin Troll
    Reply With Quote #1

    PHP Code:
    GetClientName(clientnamesizeof(name));

    ServerCommand("sm_ban %s %i Trolled"nameGetConVarInt(BanTime));

    ServerCommand("sm_kick %s Trolled"name); 
    Show me a server running this plugin and I'll show you a server I can run arbitrary commands on.
    __________________
    DarthNinja is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 05-25-2013 , 02:11   Re: [ANY] Admin Troll
    Reply With Quote #2

    Quote:
    Originally Posted by DarthNinja View Post
    PHP Code:
    GetClientName(clientnamesizeof(name));

    ServerCommand("sm_ban %s %i Trolled"nameGetConVarInt(BanTime));

    ServerCommand("sm_kick %s Trolled"name); 
    Show me a server running this plugin and I'll show you a server I can run arbitrary commands on.
    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.
    __________________

    Last edited by Dr. McKay; 05-25-2013 at 02:11.
    Dr. McKay is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 05-25-2013 , 05:39   Re: [ANY] Admin Troll
    Reply With Quote #3

    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
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 11:45.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode