Results 1 to 2 of 2

Thread: Weapon Restrict Plugin?

  1. #1
    Inactive
    Join Date
    Aug 2008
    HlStats

    HLStatsX Ranking for STEAM_0:0:10239
    Posts
    2
    Rep Power
    0

    Default Weapon Restrict Plugin?

    What plugin are you running to restrict the AWP to X per team until X players are in the game? I've been looking all over the sourcemod website and I can't find it.

  2. #2
    g0d! Contributing Member siosios's Avatar
    Join Date
    Oct 2006
    Location
    In a cardboard box
    Age
    47
    HlStats

    HLStatsX Ranking for STEAM_0:1:13488560
    Posts
    13.360
    Blog Entries
    12
    Rep Power
    10

    Default

    i use a combination of a script i wrote that uses ES and the restrict plugin for sourcemod.

    Code:
    block load
    {
    ma_say res_awp 1.0.Beta by siosios/n00b Unlimited Loaded
    
    }
    
    block commands 
    { 
       // Stick everything you want done here - 
       sm_restrict awp 0
    } 
    
    block com 
    { 
       // Stick everything you want done here - 
       sm_restrict awp 2
    
    }
    block comma 
    { 
       // Stick everything you want done here - 
       sm_restrict awp 4
    
    }  
    block command 
    { 
       // Stick everything you want done here - 
       sm_restrict awp 40
    } 
    
    event round_start 
    {
    
       es_xsetinfo empty_players 0 
       es_getplayercount empty_players 
       if (server_var(tv_enable) = 1) do 
       {
          es_xmath empty_players - 1 
       }
        if (server_var(empty_players) < 10) do 
       {
        if (server_var(empty_players) > 0) do 
       {
          es_xdoblock restrict_awps/commands
          sm_csay restricting AWP's till a total of 10 people show up
       }
    }
       if (server_var(empty_players) < 19) do
       {
           if (server_var(empty_players) > 9) do
          {
          es_xdoblock restrict_awps/com
          sm_csay restricting AWP's to 2 per team till a total of 20 people show up 
          }
       }
       if (server_var(empty_players) < 30) do
       {
           if (server_var(empty_players) > 19) do
            {
             es_xdoblock restrict_awps/comma
          sm_csay restricting AWP's to 4 per team till a total of 30 people show up
       }
    }
       if (server_var(empty_players) > 30) do
       {
             es_xdoblock restrict_awps/command
          sm_csay UNrestricting AWP's..... AWP till your hearts content
       }
    }
    with

    42 "Weapon Restrictions" (2.2) by Liam

    sio

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Modified Lastx sourcemod plugin by HomicidalApe
    By siosios in forum Software Coding
    Replies: 7
    Last Post: 02-08-2009, 06:29 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •