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

[CS:S] - AWP Blocker - For PUBLIC Servers


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Cooty
New Member
Join Date: Jan 2013
Plugin ID:
3467
Plugin Version:
1.3.0.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Plugin restrict AWP by the number of players on the server.
    Old 01-13-2013 , 10:44   [CS:S] - AWP Blocker - For PUBLIC Servers
    Reply With Quote #1

    There is my new plugin for AWP restrictions!
    Hope you enjoy.

    Informations:
    Author: Cooty
    Version: 1.3.0.0
    SourceMod: 1.4.2.0 (new sourcemod support)

    Description:
    Plugin restrict AWP by the number of players on the server.

    Files:
    C_AWPBlocker.smx
    C_AWPBlocker.sp
    C_APWBlocker.cfg

    Admin commands:
    c_awpblocker_one 10
    c_awpblocker_two 20
    c_awpblocker_three 26

    Changelog:
    1.0.0.0 - Initial release.
    1.1.0.0 - Minor bug repair.
    1.2.0.0 - Added Cvar configuration.
    1.3.0.0 - Spectator players bug repair. (Final release)

    Download:
    Attached Files
    File Type: sp Get Plugin or Get Source (C_AWPBlocker.sp - 1622 views - 2.5 KB)
    File Type: cfg C_AWPBlocker.cfg (307 Bytes, 819 views)
    File Type: zip C_AWPBlocker.zip (5.3 KB, 1003 views)

    Last edited by Cooty; 01-13-2013 at 10:46.
    Cooty is offline
    Sheepdude
    SourceMod Donor
    Join Date: Aug 2012
    Location: Chicago
    Old 01-13-2013 , 12:52   Re: [CS:S] - AWP Blocker - For PUBLIC Servers
    Reply With Quote #2

    Doesn't RAWR or Weapon Restrict already do this? All you're doing is using the sm_restrict command that comes from Weapon Restrict, and you didn't list this plugin as being dependent on it.

    And rather than this mess:
    Code:
    	if (pl_count > 0)
    	{
    		if (pl_count >= 10 && pl_count < 20 && pl_count < 38)
    		{ 
    			ServerCommand("sm_restrict awp 1"); 
    			PrintToChatAll("\x01[\x04SM\x01]\x05 AWP per team: 1");
    		}
    		else if (pl_count >= 20 && pl_count < 28)
    		{ 
    			ServerCommand("sm_restrict awp 2"); 
    			PrintToChatAll("\x01[\x04SM\x01]\x05 AWP per team: 2");
    		}
    		else if (pl_count >= 28)
    		{ 
    			ServerCommand("sm_restrict awp 3"); 
    			PrintToChatAll("\x01[\x04SM\x01]\x05 AWP per team: 3");
    		}
    	}
    Wouldn't it be easier to do it in the opposite direction?
    Code:
    if(pl_count >= 28){}
    else if(pl_count >= 20){}
    else if(pl_count >= 10){}
    __________________
    Sheepdude is offline
    minimoney1
    SourceMod Donor
    Join Date: Dec 2010
    Old 01-13-2013 , 22:15   Re: [CS:S] - AWP Blocker - For PUBLIC Servers
    Reply With Quote #3

    You're already using commands by Weapon Restrict... so why not use its per-player restriction system instead?
    __________________
    Need help? PM me or add me on Steam.
    My Steam




    Quote:
    Originally Posted by Rp.KryptoNite View Post
    For some reason his Plugin never worked for me ,
    @credits were added
    im not stealing any plugins dude its my THING
    minimoney1 is offline
    Cooty
    New Member
    Join Date: Jan 2013
    Old 01-14-2013 , 05:15   Re: [CS:S] - AWP Blocker - For PUBLIC Servers
    Reply With Quote #4

    Quote:
    Originally Posted by Sheepdude View Post
    Doesn't RAWR or Weapon Restrict already do this? All you're doing is using the sm_restrict command that comes from Weapon Restrict, and you didn't list this plugin as being dependent on it.

    And rather than this mess:
    Code:
    	if (pl_count > 0)
    	{
    		if (pl_count >= 10 && pl_count < 20 && pl_count < 38)
    		{ 
    			ServerCommand("sm_restrict awp 1"); 
    			PrintToChatAll("\x01[\x04SM\x01]\x05 AWP per team: 1");
    		}
    		else if (pl_count >= 20 && pl_count < 28)
    		{ 
    			ServerCommand("sm_restrict awp 2"); 
    			PrintToChatAll("\x01[\x04SM\x01]\x05 AWP per team: 2");
    		}
    		else if (pl_count >= 28)
    		{ 
    			ServerCommand("sm_restrict awp 3"); 
    			PrintToChatAll("\x01[\x04SM\x01]\x05 AWP per team: 3");
    		}
    	}
    Wouldn't it be easier to do it in the opposite direction?
    Code:
    if(pl_count >= 28){}
    else if(pl_count >= 20){}
    else if(pl_count >= 10){}
    Yep. Thanks but final smx from compiler. Is the same file. It is not more difficult for sourcemod kernel.
    Cooty is offline
    Cooty
    New Member
    Join Date: Jan 2013
    Old 01-14-2013 , 05:16   Re: [CS:S] - AWP Blocker - For PUBLIC Servers
    Reply With Quote #5

    Quote:
    Originally Posted by minimoney1 View Post
    You're already using commands by Weapon Restrict... so why not use its per-player restriction system instead?
    Ye, i am using weapon restriction, because it is easier, and i make this plugin for my friend's server.
    Cooty 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 15:12.


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