Raised This Month: $95 Target: $400
 23% 

Weapons Glow (v3x)***Updated V1.2***


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   twistedeuphoria (82)
Extremeone
Senior Member
Join Date: Jan 2005
Old 02-26-2005 , 21:43   Weapons Glow (v3x)***Updated V1.2***
Reply With Quote #1

Original Plugin:
Awp Glow(By v3x)
Also thanks to Genisis for helping alot by shortining/fixing the code
This will allow you to make the user glow when he has certain weapons out.
Cstrike Module Required!
Fun Module Required!
Code:
Cvars:
awp_glow 1
p228_glow 1
scout_glow 1
hegrenade_glow 1
xm1014_glow 1
c4_glow 1
mac10_glow 1
aug_glow 1
smokegrenade_glow 1
elite_glow 1
fiveseven_glow 1
ump45_glow 1
sg550_glow 1
gali_glow 1
galil_glow 1
famas_glow 1
usp_glow 1
glock18_glow 1
mp5navy_glow 1
m249_glow 1
m3_glow 1
m4a1_glow 1
tmp_glow 1
g3sg1_glow 1
flashbang_glow 1
deagle_glow 1
sg552_glow 1
ak47_glow 1
knife_glow 1
p90_glow 1
Screenshot:


Note: This is a TOTAL AND COMPLETE RIP ALMOST NONE OF THE CODE IS MINE ALL CREDIT GOES TO V3X FOR THIS AWSOME PLUGIN
Attached Files
File Type: sma Get Plugin or Get Source (weapons_glow.sma - 6938 views - 5.9 KB)
Extremeone is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-26-2005 , 21:45  
Reply With Quote #2

__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
TiMbErLaNd
Senior Member
Join Date: Jan 2005
Location: Detroit, Michigan
Old 02-26-2005 , 22:53  
Reply With Quote #3

so basicly everyone can glow all the time

oh i see now you can pick all the naughty ones
TiMbErLaNd is offline
XxKpAznGuyxX
Senior Member
Join Date: Dec 2004
Location: EARTH!!
Old 02-26-2005 , 22:54  
Reply With Quote #4

unless you take turn it off on some weapons
__________________
24/7 Chicago Terror-8.9.2.120:27015
XxKpAznGuyxX is offline
Send a message via AIM to XxKpAznGuyxX Send a message via MSN to XxKpAznGuyxX
NiGHTFiRE
Senior Member
Join Date: Dec 2004
Location: Sweden
Old 02-27-2005 , 02:51  
Reply With Quote #5

You should change this in your plugin:
Code:
/*
 *	Name: AWP Glow
 *	Date: Feb. 21, 2005
 *
 *	Description: When a user has the awp out, he will
 *		     glow the color of the team that he
 *		     is on. T = Red, CT = Blue
 *		     VERY noticable!
 *
 *
 *	Usage: awp_glow <1|0>
 *
 *
 *	Other notes: This plugin is a slightly modded
 *		     version of my Various Weapon
 *		     Speeds plugin
 *
 *
 *	To do:
 *	 - Nothing
 *
 *
 *	Updates:
 *	 V1.01 - Added cvar
 *
 *	
 */

#include <amxmodx>
#include <cstrike>
#include <fun>

#define PLUGIN    "AWP Glow"
#define AUTHOR    "v3x"
Because that's the description from V3x and stuff. You should also change the #define author to your name because you made this plugin.
NiGHTFiRE is offline
Send a message via AIM to NiGHTFiRE Send a message via MSN to NiGHTFiRE
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 02-27-2005 , 03:32  
Reply With Quote #6

Code:
if((get_cvar_float("p228_glow") == 0))         return PLUGIN_CONTINUE

if someone sets the p228_glow to zero then the plugin will exit the function completely and not even check any of the other cvars or make any other weapons glow.

recommend

Code:
if((get_cvar_float("p228_glow") == 1)) {              //  Do glow stuff here }

vs.

Code:
if((get_cvar_float("p228_glow") == 0))         return PLUGIN_CONTINUE // do glow stuff here

interesting plugin otherwise.
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis is offline
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 02-27-2005 , 03:50  
Reply With Quote #7

meh I just optimized it while I was at it:

the new code isn't super elegant but it does the job, saves much space and reduces alot of redundancy. Unless I made a mistake, let me know.
Attached Files
File Type: sma Get Plugin or Get Source (weapons_glow.sma - 1522 views - 5.4 KB)
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-27-2005 , 03:55  
Reply With Quote #8

Looks better than the billion lines of code he had before .
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Extremeone
Senior Member
Join Date: Jan 2005
Old 02-27-2005 , 09:32  
Reply With Quote #9

Im not really good at this

yeah v3x i had like 1300 lines

ty genisis i will try that version and edit my post and include you in the authors

the reason i did not include my self in the author is because all i did was copy and paste 1500 times and change the weapon names
Extremeone is offline
Extremeone
Senior Member
Join Date: Jan 2005
Old 02-27-2005 , 15:45  
Reply With Quote #10

Ok updated to version 1.2
Extremeone is offline
Reply


Thread Tools
Display Modes

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 23:09.


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