Raised This Month: $51 Target: $400
 12% 

Sunglasses v1.0 (Anti-Flashbang Shades)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   SniperBeamer (61)
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 04-03-2004 , 14:35   Sunglasses v1.0 (Anti-Flashbang Shades)
Reply With Quote #1

Sunglasses v1.0
Version 1.0
Author: Calzinger; Build; [email protected] (MSN) xSouLHeLLTemplaR (AIM)
Author: AssKicR; Fix & Addition; [email protected] (MSN) DaAssKicR (AIM)
Thanks to Blunted1 for testing, suggestions, and other important aid.



This plugin will add sunglasses to Counter-Strike. You can buy/sell your pair
of sunglasses. While wearing a pair of sunglasses, your vision will be dimmed
slightly, but you will be immune to flashbangs. Be careful though, if you are
not wearing a pair of sunglasses, you can be struck by the sun and be blinded
temporarily! You can set the cost of sunglasses, the amount of darken of the
sunglasses, and enable/disable buyzone & buytime.
  • Requirements:
    • Compiled on 0.9.4.
    • Tested successfully on 0.9.3.
    • Tested successfully on 0.9.4.
    • Should work successfully on 0.9.5.

  • Admin Commands:
    • amx_shades < nick, uniqueid, #userid, @TEAM, or * > <- Gives shades to specified client(s)
    • amx_unshades < nick, uniqueid, #userid, @TEAM, or * > <- Causes shades to break

  • Client Commands:
    • say /shades <- Displays the Sunglasses help menu
      buyshades <- Buys a pair for specified player
      (Player must be in buyzone if specified by CVAR)
    • sellshades <- Sells player's pair of shades for 75% of the sell price

  • Server CVARs:
    • amx_shades_darken "100 - 200" <- Amount of darkness when a player has sunglasses on
    • amx_shades_cost "1500 - 10000" <- Amount of cash it takes to buy a pair of sunglasses
    • amx_shades_buyzone 1/0 <- If on, player will required to be in a buyzone when buying sunglasses
    • amx_shades_buytime 1/0 <- If on, only allows player to buy sunglasses during buytime
    • amx_shades_advertise 1/0 <- If on, people will at time be blinded by the sun, reminding them that they should have bought sunglasses
    • amx_shades_on 1/0 <- ON/OFF CVAR

Tested for AMXx by DoubleTap
Attached Files
File Type: sma Get Plugin or Get Source (sunglasses.sma - 7767 views - 12.5 KB)
__________________
My Plugins

Got ??
AssKicR is offline
Isobold
Veteran Member
Join Date: Mar 2004
Old 05-18-2004 , 06:22  
Reply With Quote #2

works fine, only I can't change the amx_shades_darken cvar on the console. Does I have to type again amx_cvar amx_shades_darken as for the radiochannels of transistorradio?
Isobold is offline
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 05-18-2004 , 06:34  
Reply With Quote #3

yes, that is how you change cvars
__________________
My Plugins

Got ??
AssKicR is offline
Dubie
Member
Join Date: Mar 2004
Old 05-25-2004 , 18:03  
Reply With Quote #4

Is it possible to turn off the sun flash?

Peace,
Dubie
Dubie is offline
Send a message via MSN to Dubie
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 05-25-2004 , 19:44  
Reply With Quote #5

there is no cvar but u can edit the sma.
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
SprayPaint
Junior Member
Join Date: May 2004
Location: Sweden
Old 05-28-2004 , 13:49  
Reply With Quote #6

The link to the .amx file is broken...
SprayPaint is offline
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 05-28-2004 , 16:14  
Reply With Quote #7

Compiles fine offsite. throw in ur scripting folder and try the sc.bat.
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 05-29-2004 , 09:36  
Reply With Quote #8

Quote:
Originally Posted by Dubie
Is it possible to turn off the sun flash?

Peace,
Dubie
What do you meen.. Do you meen like amx_shades_on 1/0 ???
__________________
My Plugins

Got ??
AssKicR is offline
SprayPaint
Junior Member
Join Date: May 2004
Location: Sweden
Old 05-29-2004 , 11:31  
Reply With Quote #9

Quote:
Originally Posted by AssKicR
Quote:
Originally Posted by Dubie
Is it possible to turn off the sun flash?

Peace,
Dubie
What do you meen.. Do you meen like amx_shades_on 1/0 ???
he means shademod, without sun flash
SprayPaint is offline
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 05-29-2004 , 11:40  
Reply With Quote #10

kinda like a cvar for the random sun flashes i.e. amx_sunflashes 1|0
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode