This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Simple Glow


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff       
-hi-
Member
Join Date: Jul 2006
Old 07-10-2006 , 00:06   Simple Glow
Reply With Quote #1

This is a very simple glow plugin for those who like simple stuff.

It has one command:

say glow rgb where r, g, and b are values ranging from 0 to 9.

Examples:

To glow cyan one would type:
glow 099

Glowing blue is done this way:
glow 009

Anything in between is legal, like
glow 432

or something
Attached Files
File Type: sma Get Plugin or Get Source (simpleglow.sma - 540 views - 2.0 KB)

Last edited by -hi-; 07-11-2006 at 20:36.
-hi- is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 07-10-2006 , 01:42   Re: Simple Glow
Reply With Quote #2

been made multiple times...but thats ok.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Throstur
Senior Member
Join Date: Nov 2004
Location: Iceland
Old 07-10-2006 , 08:38   Re: Simple Glow
Reply With Quote #3

Been made SO many times but this one's a bit different, I could use it to learn!

edit: HOLY SHIT you really gotta learn to indent! Your work is hard to read!

Last edited by Throstur; 07-10-2006 at 09:08.
Throstur is offline
Send a message via AIM to Throstur Send a message via MSN to Throstur
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 07-10-2006 , 11:28   Re: Simple Glow
Reply With Quote #4

Quote:
Originally Posted by Throstur
edit: HOLY SHIT you really gotta learn to indent! Your work is hard to read!
agreed, i can't hardly see what something do
Deviance is offline
-hi-
Member
Join Date: Jul 2006
Old 07-10-2006 , 12:57   Re: Simple Glow
Reply With Quote #5

My indenting is good I think it's my lack of new lines that irks you. I updated the file so it should be more legible.
-hi- is offline
Throstur
Senior Member
Join Date: Nov 2004
Location: Iceland
Old 07-10-2006 , 14:31   Re: Simple Glow
Reply With Quote #6

looks a bit better now
__________________
Throstur is offline
Send a message via AIM to Throstur Send a message via MSN to Throstur
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 07-10-2006 , 17:15   Re: Simple Glow
Reply With Quote #7

I like the tab button
__________________
Don't ever place an order with Vee Servers. This is why.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-10-2006 , 17:43   Re: Simple Glow
Reply With Quote #8

Ignore the comments from the noobs.

This one looks really simple. You should hook the CurWeapon event and set the glow in there instead of using a task to do so.

Also, to get rid of any added rendering effects, simply do this:
Code:
set_user_rendering(id);
AFAIK, it works.
__________________
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
-hi-
Member
Join Date: Jul 2006
Old 07-10-2006 , 18:58   Re: Simple Glow
Reply With Quote #9

updated

EDIT:
Hmm, works OK in TFC but not in CS, specifically CSDM. Did I do the event hooking wrong?

EDIT2:
NM, fixed it. I was trying to use read_data() to get the user's id but looking at other plugins you just have it as a parameter.

Last edited by -hi-; 07-10-2006 at 19:47.
-hi- is offline
-hi-
Member
Join Date: Jul 2006
Old 07-11-2006 , 19:34   Re: Simple Glow
Reply With Quote #10

Fixed a bug where glow wouldn't turn off correctly...
-hi- is offline
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 03:25.


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