Simple Restrict AWP script

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
   }
} 

Oh noes! You're not a Member!

Want access to cool stuff? As a member you can:

  • Post. Give the submitter your thoughts on this Script.
  • Say Thanks. Show your appreciation by sending the submitter points.
  • Stamp Posts. Let other posters know what you think of their posts.
  • Rate. Give this Script a rating out of 10.
  • Flag. Alert moderators and warn members of a problem with this Script.
  • Vote. Vote the submitter for the Monthly Awards.
  • Subscribe. Get notified when this submitter submits again.

Interested? Register or Login

Comments

  • Nomis581's Levels
    • C1: Member
    • A5: Veteran
      Account Age: 5 years
    Posted 5 years ago

    Nice

    Bananite
  • siosios's Levels
    • P1: Beggar
      Points: 5
    • C1: Member
    • A5: Veteran
      Account Age: 5 years
    Posted 5 years ago

    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
  • Woomaps's Levels
    • P2: Drudge
      Points: 1,330
    • C1: Member
    • A6: Elder
      Account Age: 6 years
    Posted 6 years ago
    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 esxset when you can use esset? - 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!
  • hyrsy's Levels
    • C1: Member
    • A6: Elder
      Account Age: 6 years
    Posted 6 years ago

    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 { esregsaycmd !restrict restrict/process // SEE! I DONT ADD NOOB ADS! esxset hyrsyrestrict "1" // that was version info... esmakepublic 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
  • Woomaps's Levels
    • P2: Drudge
      Points: 1,330
    • C1: Member
    • A6: Elder
      Account Age: 6 years
    Posted 6 years ago
    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!
  • KCKnighcrawler's Levels
    • P1: Beggar
      Points: 305
    • C1: Member
    • A6: Elder
      Account Age: 6 years
    Posted 6 years ago

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

    User Title
    {kck} pwns the noobs
  • River-'s Levels
    • C1: Member
    • A6: Elder
      Account Age: 6 years
    Posted 6 years ago

    ..... Man its a long Scipt.. nice 1 =]

    Bananite

Credits

Submitter
Woomaps's Levels
  • P2: Drudge
    Points: 1,330
  • C1: Member
  • A6: Elder
    Account Age: 6 years
Woomaps (Redistributor)
Key Authors
siosios
Unknown

Rating

?/10
Not yet rated.

Stats

Post Count
7
ViewCount
5,229
Date Added
6 years ago
Date Modified
6 years ago

Share

Embed Code
Code to use:

More embeddable images

Bookmark and Share