AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Nade Messages (https://forums.alliedmods.net/showthread.php?t=11525)

v3x 03-21-2005 23:20

Nade Messages
 
2 Attachment(s)
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.

xeroblood 03-21-2005 23:43

:D

v3x 03-23-2005 23:15

Updated.

v3x 07-18-2005 19:15

Updated again..

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

It should work perfectly now! :twisted:

x_fl1p 10-02-2005 03:18

not working

tried it several times

v3x 10-02-2005 03:32

What version of AMXX are you using and how did you compile it?

Liquidz 01-09-2006 22:43

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?

v3x 01-09-2006 22:54

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.

Liquidz 01-10-2006 00:05

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)

v3x 01-10-2006 00:57

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.


All times are GMT -4. The time now is 03:56.

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