
   /*********************************************************************
   AMX MOD Script
   Awp Aware
   Version 1.0
   Created by Zaltoa
   Description -
   When  a person picks up an AWP it shows in a hud msg the person has an
   AWP.
   People with AWP glow depending on what team there on, blue = CT, red =
   T.
   Command -
   amx_awpaware <number>
   Numbers -
   1 = on
   0 = off
   Default on
   HEHEHEHE, and as Freecode would say
   To do :
   ========
   Nothing
   Have Fun
   *********************************************************************/
   #include <amxmod>
   #include <amxmisc>
   new awpaware = 1
   new g_awpmsg[5][] = {
     "Uh Oh %s has an AWP!!!!",
     "%s is now using an AWP...",
     "%s is being one of them damn AWP whores...",
     "Prepared to be killed with one shot by %s",
     "%s is now glowing with his whimpy awp"
   }
   public plugin_init(){
         register_plugin("Awp Aware","1.0","Zaltoa")
         register_concmd("amx_awpaware","cmdawp",1,"-  turn  awp aware on
   and off <1|0>")
         register_event("WeapPickup","check_awp","b","1=18")
         set_task(0.1,"loop",0,"",0,"b")
   }
   public cmdawp(id){
         new arg[2]
         read_argv(1,arg,1)
         if(equal(arg,"1")){
            awpaware = 1
            console_print(id,"Awp Aware is now on.")
         } else if(equal(arg,"0")){
            awpaware = 0
            console_print(id,"Awp Aware is now off.")
         } else {
            if(awpaware==0){
               console_print(id,"Usage: amx_awpaware <1|0> 1 = on 0 = off
   Currently: OFF")
            } else if(awpaware==1){
               console_print(id,"Usage: amx_awpaware <1|0> 1 = on 0 = off
   Currently: ON")
            }
         }
         return PLUGIN_CONTINUE
   }

   public check_awp(id){
         if(awpaware==0){
            //nothing
         }
         if(awpaware==1){
            new message[128], name[32]
            get_user_name(id,name,31)
            copy(message,127,g_awpmsg[random_num(0,4)])
            replace(message,127 ,"%s",name)
            set_hudmessage(200,  100,  0,  -1.0,  0.25, 0, 1.0, 4.0, 0.1,
   0.2, 2)
            show_hudmessage(0,message)
         }
         return PLUGIN_CONTINUE
   }
   public loop(){
         if(awpaware==0){
            //nothing
         }
         if(awpaware==1){
            new players[32], inum, clip, ammo
            get_players(players,inum)
            for(new a=0;a<inum;++a) {
               new usersweapon = get_user_weapon(players[a],clip,ammo)
               if(usersweapon==CSW_AWP){
                   if(get_user_team(players[a])==1){
                       set_user_rendering(players[a],kRenderFxGlowShell,2
   55,0,0,kRenderNormal,40)
                   } else {
                       set_user_rendering(players[a],kRenderFxGlowShell,0
   ,0,255,kRenderNormal,40)
                   }
               } else {
                   set_user_rendering(players[a],kRenderFxNone,0,0,0,kRen
   derTransTexture,255)
               }
            }
         }
         return PLUGIN_CONTINUE
   }
