Simple Restrict AWP script

A Config Script for Counter-Strike: Source

SEX! Ok, we got your attention. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending Woomaps points.
  • Post: Give Woomaps your thoughts on this Script.
  • Vote: Help Woomaps win the Monthly Awards.
  • Rate: Give this Script a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Script.
  • Watch: Get notified when this Script is updated.
Mascot

Join the community!

Sign up

Already a Bananite? Login

65 lines | 1 kb | Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
to install create restrict_awps.txt in a folder called restrict_awps

then upload to your cstrike/addons/eventscripts/

in your autoexec.cfg paste -> es_load restrict_awps

to load it right away do "rcon es_load restrict_awps" in console

Code:

block load
{
es_xsetinfo res_awp 1.0.Beta
es_makepublic res_awp
ma_say res_awp 1.0.Beta by siosios/n00b Unlimited Loaded

}

block commands
{
   // Stick everything you want done here -
   ma_restrict awp 0
}

block com
{
   // Stick everything you want done here -
   ma_restrict awp 2
}
block command
{
   // Stick everything you want done here -
   ma_restrict awp 10
}

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) < 9) do
   {
    if (server_var(empty_players) > 0) do
   {
      es_xdoblock restrict_awps/commands
      ma_say 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
      ma_say restricting AWP'
s to 2 per team till a total of 20 people show up
      }
   }
   if (server_var(empty_players) > 19) do
   {
         es_xdoblock restrict_awps/command
      ma_say UNrestricting AWP's..... AWP till your hearts content
   }
}

Posts

  • 9y
    Nomis581 avatar
    Nomis581 Offline
    Member Joined 9y
    Nice
    Bananite
  • 9y
    siosios avatar
    siosios Offline
    Member Joined 9y
    342 points Ranked 11852nd
    6 medals 1 rare
    • 6 years a member Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    • 2 years a member Medal icon
    • 4 years a member Medal icon
    Actually this script is exactly what i needed and was simple to create. hence why i havent made any updates to it since i first released it.

    siosios
    Bananite
  • 10y
    Woomaps avatar
    Woomaps Offline
    Member Joined 11y
    1,355 points Ranked 3474th
    Posted by hyrsy

    HAHAHA! This isnt even big eventscripts script... And i could do shorter! Ps. Restricking awp with same tactic like this isnt bad; ma_restric AWP to console, and its voilá! Heres the script i promesed:

    block load
    {
    es_regsaycmd !restrict restrict/process
    // SEE! I DONT ADD NOOB ADS!
    es_xset hyrsy_restrict "1"
    // that was version info...
    es_makepublic hyrsy_restrict
    }

    block process
    {
    // Worlds simply way to do this, same as Woomaps:
    ma_restrict AWP
    }

    WOOHOO! Its done to chat! (Took 30 seconds)


    Well, i can obviously see you cant script for shit.
    - Whats the point in having regsaycmd? Where is the checking to see if the person who said it was an admin?
    - Why use es_xset when you can use es_set?
    - Why use Mani when you can use the built in ES restrict command?
    - Where is the unload section of the script?
    - Where are the IF commands to see if AWP is already restricted?

    Come back when you can code please.

    P.s I just found this script, i didnt make it, and yes it is pretty crap, and yes i could script one 10x better than this.
    Woomaper!
  • 10y
    hyrsy avatar
    hyrsy Offline
    Member Joined 10y
    HAHAHA! This isnt even big eventscripts script... And i could do shorter! Ps. Restricking awp with same tactic like this isnt bad; ma_restric AWP to console, and its voilá! Heres the script i promesed:

    block load
    {
    es_regsaycmd !restrict restrict/process
    // SEE! I DONT ADD NOOB ADS!
    es_xset hyrsy_restrict "1"
    // that was version info...
    es_makepublic hyrsy_restrict
    }

    block process
    {
    // Worlds simply way to do this, same as Woomaps:
    ma_restrict AWP
    }

    WOOHOO! Its done to chat! (Took 30 seconds)
    Bananite
  • 11y
    Woomaps avatar
    Woomaps Offline
    Member Joined 11y
    1,355 points Ranked 3474th
    Posted by KCKnighcrawler

    I dont see how this is simple =s
    theres like eight pages


    It is long because it waits until you actualy have the gun out. So you can still buy AWP, just cant use it. Great if your server is effected by the ability to bypass weapon restrictions.
    Woomaper!
  • 11y
    KCKnighcrawler avatar
    Member Joined 11y
    305 points Ranked 12974th
    I dont see how this is simple =s
    theres like eight pages
    {kck} pwns the noobs avatar
    Mantra
    {kck} pwns the noobs
  • 11y
    River- avatar
    River- Offline
    Member Joined 11y
    .....
    Man its a long Scipt..
    nice 1 =]
    Bananite

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Credits

Key Authors
siosios
Unknown

Submitter

Woomaps avatar
Woomaps Offline
Member Joined 11y
1,355 points Ranked 3474th

Woomaps
Redistributor
Are you the owner? Request Ownership
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Stats

Posts
7
Views
9,811
Date Added
11y
bcp.crwdcntrl.net tracking pixel