Raised This Month: $51 Target: $400
 12% 

[TF2] Prem2BeKicked (Anti-P2P)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
xyxx
New Member
Join Date: Jun 2011
Plugin ID:
2399
Plugin Version:
0.01
Plugin Category:
Server Management
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Automatically kicks non-freemium players.
    Unapprover:
    Reason for Unapproving:
    Failed logic.
    Old 06-25-2011 , 14:46   [TF2] Prem2BeKicked (Anti-P2P)
    Reply With Quote #1

    Absolutely all credit belongs to asherkin.

    It is but a slight edit for those server owners that may feel offended by the f2p mod.
    Attached Files
    File Type: sp Get Plugin or Get Source (anti_p2p.sp - 203 views - 884 Bytes)
    File Type: smx anti_p2p.smx (2.5 KB, 200 views)
    xyxx is offline
    Mecha the Slag
    Veteran Member
    Join Date: Jun 2009
    Location: Denmark
    Old 06-25-2011 , 14:53   Re: [TF2] Prem2BeKicked (Anti-P2P)
    Reply With Quote #2

    Brilliant. 10/10 good work
    __________________
    Mecha the Slag is offline
    asherkin
    SourceMod Developer
    Join Date: Aug 2009
    Location: OnGameFrame()
    Old 06-25-2011 , 15:02   Re: [TF2] Prem2BeKicked (Anti-P2P)
    Reply With Quote #3

    That wont even work, you modified the wrong check. That'll just kick any root admin.
    Code:
    public OnClientPostAdminCheck(client)
    {
    	if (CheckCommandAccess(client, "BypassBasicAccountCheck", ADMFLAG_ROOT, true))
    	{
    		return;
    	}
    	
    	if (Steam_CheckClientDLC(client, 459))
    	{
    		KickClient(client, "You need a Basic TF2 account to play on this server");
    		return;
    	}
    	
    	return;
    }
    __________________
    asherkin is offline
    Ginxeng
    Senior Member
    Join Date: Nov 2009
    Location: Timber Doodle
    Old 06-25-2011 , 16:28   Re: [TF2] Prem2BeKicked (Anti-P2P)
    Reply With Quote #4

    I guess now I need to make one that one kicks FP2 and Non-F2P users.
    __________________
    Ginxeng is offline
    Send a message via AIM to Ginxeng Send a message via MSN to Ginxeng Send a message via Skype™ to Ginxeng
    napalm00
    Veteran Member
    Join Date: Jun 2011
    Location: Italy, sadly
    Old 06-25-2011 , 16:37   Re: [TF2] Prem2BeKicked (Anti-P2P)
    Reply With Quote #5

    Quote:
    Originally Posted by Ginxeng View Post
    I guess now I need to make one that one kicks FP2 and Non-F2P users.
    1.Make one that kicks developers
    2.Invite gabe and robin on your server
    3.Watch them being kicked
    4.???
    5.Profit! (server delisted)
    napalm00 is offline
    Snaggle
    AlliedModders Donor
    Join Date: Jul 2010
    Location: England
    Old 06-25-2011 , 17:03   Re: [TF2] Prem2BeKicked (Anti-P2P)
    Reply With Quote #6

    Quote:
    Originally Posted by napalm00 View Post
    1.Make one that kicks developers
    2.Invite gabe and robin on your server
    3.Watch them being kicked
    4.???
    5.Profit! (server delisted)
    (Steam account disabled.....dog dead too)
    Snaggle is offline
    Zephyrus
    Cool Pig B)
    Join Date: Jun 2010
    Location: Hungary
    Old 06-25-2011 , 17:28   Re: [TF2] Prem2BeKicked (Anti-P2P)
    Reply With Quote #7

    Quote:
    Originally Posted by Snaggle View Post
    (Steam account disabled.....dog dead too)
    dog will be eaten by gabe
    Zephyrus is offline
    xPaw
    Retired AMX Mod X Moderator
    Join Date: Jul 2008
    Old 06-26-2011 , 04:38   Re: [TF2] Prem2BeKicked (Anti-P2P)
    Reply With Quote #8

    Quote:
    Originally Posted by Ginxeng View Post
    I guess now I need to make one that one kicks FP2 and Non-F2P users.
    Code:
    public OnClientPostAdminCheck(client)
    {
    	if (CheckCommandAccess(client, "BypassBasicAccountCheck", ADMFLAG_ROOT, true))
    	{
    		return;
    	}
    	
    	KickClient(client, "You can't play with TF2 client here.");
    }
    lol
    __________________
    xPaw is offline
    Ginxeng
    Senior Member
    Join Date: Nov 2009
    Location: Timber Doodle
    Old 06-26-2011 , 14:29   Re: [TF2] Prem2BeKicked (Anti-P2P)
    Reply With Quote #9

    Quote:
    Originally Posted by xPaw View Post
    Code:
    public OnClientPostAdminCheck(client)
    {
        if (CheckCommandAccess(client, "BypassBasicAccountCheck", ADMFLAG_ROOT, true))
        {
            return;
        }
     
        KickClient(client, "You can't play with TF2 client here.");
    }
    lol
    LOL I'm install this on my test server.
    __________________
    Ginxeng is offline
    Send a message via AIM to Ginxeng Send a message via MSN to Ginxeng Send a message via Skype™ to Ginxeng
    abcorn
    Junior Member
    Join Date: Dec 2010
    Old 06-27-2011 , 17:17   Re: [TF2] Prem2BeKicked (Anti-P2P)
    Reply With Quote #10

    Quote:
    Originally Posted by asherkin View Post
    That wont even work, you modified the wrong check. That'll just kick any root admin.
    Code:
    public OnClientPostAdminCheck(client)
    {
    	if (CheckCommandAccess(client, "BypassBasicAccountCheck", ADMFLAG_ROOT, true))
    	{
    		return;
    	}
    	
    	if (Steam_CheckClientDLC(client, 459))
    	{
    		KickClient(client, "You need a Basic TF2 account to play on this server");
    		return;
    	}
    	
    	return;
    }
    Lawl, nice work.
    abcorn 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 02:57.


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