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