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

Team Glowing Sentry Guns


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Team Fortress Classic        Category:   General Purpose        Approver:   Emp` (115)
Rapid1Fire
Junior Member
Join Date: Apr 2007
Old 04-01-2007 , 22:24   Team Glowing Sentry Guns
Reply With Quote #1

Team Glowing Sentry Guns v1.0

This is my first plugin and it wasn't so could so some users helped me along the way. Now this plugin lets the admin toggle whether the sentry gun glows its team color or doesn't glow at all. Thanks to pizzahut.

Commands...
amx_sgglow <1/0/on/off>

Requires Engine Module
Does NOT Require TFC Module

This plugin wouldn't be possible without:
hlstriker, Alka, SixTwin, and pizzahut!
Thanks guys!

Attached Files
File Type: sma Get Plugin or Get Source (glow_sg.sma - 1404 views - 1.7 KB)

Last edited by Rapid1Fire; 04-07-2007 at 17:29.
Rapid1Fire is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 04-01-2007 , 23:51   Re: Glowing Sentry Guns
Reply With Quote #2

1) Why you don't use pcvars ?
2) Here if(g_newCvarStatus == 1).. and else { .. } can be used an switch
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 04-02-2007 , 03:44   Re: Glowing Sentry Guns
Reply With Quote #3

pcvars. cvar option for team colored glows. wouldn't suggest using server_frame
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Rapid1Fire
Junior Member
Join Date: Apr 2007
Old 04-02-2007 , 04:01   Re: Glowing Sentry Guns
Reply With Quote #4

Alright. That might take awhile and sorry if this isnt the most accurate way of coding this its my first plugin. It still works though and does not lag the server... from what I have tested.
Rapid1Fire is offline
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 04-02-2007 , 05:24   Re: Glowing Sentry Guns
Reply With Quote #5

Quote:
Originally Posted by SAMURAI16 View Post
1)
2) Here if(g_newCvarStatus == 1).. and else { .. } can be used an switch
Its allright like this
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
Rapid1Fire
Junior Member
Join Date: Apr 2007
Old 04-02-2007 , 05:40   Re: Glowing Sentry Guns
Reply With Quote #6

If there are any bugs can you guys let me know? Btw I think that if a plugin works and its optimized well enough to not make any lag we should not have any problems =) I will try pcvars in the next plugin I make if I need to. Thanks for the information.
Rapid1Fire is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-02-2007 , 07:54   Re: Glowing Sentry Guns
Reply With Quote #7

Quote:
Originally Posted by Rapid1Fire View Post
If there are any bugs can you guys let me know? Btw I think that if a plugin works and its optimized well enough to not make any lag we should not have any problems =) I will try pcvars in the next plugin I make if I need to. Thanks for the information.
You think wrong. Put in pcvars.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Rapid1Fire
Junior Member
Join Date: Apr 2007
Old 04-02-2007 , 12:51   Re: Glowing Sentry Guns
Reply With Quote #8

I tried and I got errors, I must be doing something wrong
Rapid1Fire is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 04-02-2007 , 13:27   Re: Glowing Sentry Guns
Reply With Quote #9

try this!
Attached Files
File Type: sma Get Plugin or Get Source (glowingsentryguns.sma - 930 views - 1.3 KB)
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Rapid1Fire
Junior Member
Join Date: Apr 2007
Old 04-02-2007 , 13:38   Re: Glowing Sentry Guns
Reply With Quote #10

Thanks a bunch Alka!
Rapid1Fire 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 20:03.


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