Raised This Month: $32 Target: $400
 8% 

Nade Messages


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   devicenull (200)
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-21-2005 , 23:20   Nade Messages
Reply With Quote #1

Nade Messages v0.3
by v3x

Description:
Says a random colored HUD message on the screen after a player is killed by a grenade.
---
Cvars:
nade_message "message here" (be sure to use quotes!)
- Default message is "TOUCHDOWN!!"
nade_sound <1|0>
- Plays a sound when naded (default: 1)
---
Q: Where in the heck did I get this idea from??
A: Well, at a few servers I play on, the admins put a HUD message up on the screen saying "TOUCHDOWN!!" or something. So I thought it'd be more convienent to automatically display it.
---
Updates:
v0.3:
- Fixed broken cvar & updated some minor stuff
v0.2:
- Added sound
---
HUD message info:
- You can adjust the positioning and what not in the set_hud() function. Use this plugin to help you with positioning it.
Attached Files
File Type: sma Get Plugin or Get Source (nademessages.sma - 7208 views - 1.2 KB)
File Type: zip nadesound.zip (80.6 KB, 5424 views)
__________________
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
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-21-2005 , 23:43  
Reply With Quote #2

xeroblood is offline
Send a message via MSN to xeroblood
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-23-2005 , 23:15  
Reply With Quote #3

Updated.
__________________
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
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-18-2005 , 19:15  
Reply With Quote #4

Updated again..

- Fixed broken cvar
- Fixed/added HUD random color vars
- Some other minor coding changes

It should work perfectly now!
__________________
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
x_fl1p
Junior Member
Join Date: Sep 2005
Old 10-02-2005 , 03:18  
Reply With Quote #5

not working

tried it several times
x_fl1p is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 10-02-2005 , 03:32  
Reply With Quote #6

What version of AMXX are you using and how did you compile it?
__________________
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
Liquidz
Senior Member
Join Date: Jan 2006
Location: Toronto, Canada
Old 01-09-2006 , 22:43  
Reply With Quote #7

ok i got it working but wen someone kills ih nade does everyone here sound? and 1 more thing how do i make the messae go in middle of scrreen and make it red?
__________________

Liquidz is offline
Send a message via MSN to Liquidz
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 01-09-2006 , 22:54  
Reply With Quote #8

1) Yes
2) Change this:
Code:
//         new iRed   = random_num(1,255)         new iGreen = random_num(1,255)         new iBlue  = random_num(1,255)         set_hudmessage(iRed,iGreen,iBlue,0.10,0.30,0,3.0,6.0,0.1,0.2,4)
to
Code:
//         new iRed   = 255         new iGreen = 0         new iBlue  = 0         set_hudmessage(iRed,iGreen,iBlue,-0.1,-0.1,0,3.0,6.0,0.1,0.2,4)
and it should work.
__________________
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
Liquidz
Senior Member
Join Date: Jan 2006
Location: Toronto, Canada
Old 01-10-2006 , 00:05  
Reply With Quote #9

will this do it...

new iRed = random_num(1,255)
new iGreen = random_num(0)
new iBlue = random_num(0)

set_hudmessage(iRed,iGreen,iBlue,-0.1,-0.1,0,3.0,6.0,0.1,0.2,4)
__________________

Liquidz is offline
Send a message via MSN to Liquidz
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 01-10-2006 , 00:57  
Reply With Quote #10

I would use my way.. If you used your way you wouldn't be able to see the message sometimes if the number was too low.
__________________
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
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 09:16.


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