Raised This Month: $51 Target: $400
 12% 

Nade Messages


Post New Thread Reply   
 
Thread Tools Display Modes
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 01-10-2006 , 06:48  
Reply With Quote #11

Quote:
Originally Posted by v3x
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.
he could use

new iRed = random_num(100,255)

Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Liquidz
Senior Member
Join Date: Jan 2006
Location: Toronto, Canada
Old 01-10-2006 , 23:14  
Reply With Quote #12

the sound sint working either unless i kill wiht nade if someone else does it i dont hear it i can only read the message :S
__________________

Liquidz is offline
Send a message via MSN to Liquidz
Destro
Junior Member
Join Date: Aug 2005
Location: MUC
Old 04-08-2006 , 19:54  
Reply With Quote #13

hi
first of all
Great Plugin
if searched a long time for something like this

*erm*
i wanna ask, is it possible that only the attacker and the victim are hearing the sound and not all ?

and the second one
can this plugin rewrite for other weapons ?
__________________
81.92.166.123 - Deathmatchbude USH >>V6<<
AMXX 1.76b, Metamod 1.19p28, HLG 1.9.n10, SB 3.3, CSDM 1,7 (itemmode)
Maps: cs_assault, cs_italy, cs_militia, cs_office, cs_siege, de_aztec, de_cbble, de_dust, de_dust2, de_inferno, de_nuke, de_train and de_vertigo
more infos @ www.spassbude.info
Destro is offline
Send a message via ICQ to Destro
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-08-2006 , 20:53  
Reply With Quote #14

Yes and yes.
__________________
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
Destro
Junior Member
Join Date: Aug 2005
Location: MUC
Old 04-09-2006 , 10:17  
Reply With Quote #15

how ?
__________________
81.92.166.123 - Deathmatchbude USH >>V6<<
AMXX 1.76b, Metamod 1.19p28, HLG 1.9.n10, SB 3.3, CSDM 1,7 (itemmode)
Maps: cs_assault, cs_italy, cs_militia, cs_office, cs_siege, de_aztec, de_cbble, de_dust, de_dust2, de_inferno, de_nuke, de_train and de_vertigo
more infos @ www.spassbude.info
Destro is offline
Send a message via ICQ to Destro
Destro
Junior Member
Join Date: Aug 2005
Location: MUC
Old 04-13-2006 , 12:18  
Reply With Quote #16

please don't ignore it
im a complete beginner in AMXX
i don't really know how´
__________________
81.92.166.123 - Deathmatchbude USH >>V6<<
AMXX 1.76b, Metamod 1.19p28, HLG 1.9.n10, SB 3.3, CSDM 1,7 (itemmode)
Maps: cs_assault, cs_italy, cs_militia, cs_office, cs_siege, de_aztec, de_cbble, de_dust, de_dust2, de_inferno, de_nuke, de_train and de_vertigo
more infos @ www.spassbude.info
Destro is offline
Send a message via ICQ to Destro
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-13-2006 , 14:16  
Reply With Quote #17

Added the knife for an example:
Code:
// Nade messages v0.3.1 // by v3x #include <amxmodx> #define PLUGIN  "Nade Messages" #define VERSION "0.3.1" #define AUTHOR  "v3x" public plugin_init() {     register_plugin(PLUGIN , VERSION , AUTHOR);     register_event("DeathMsg" , "event_DeathMsg" , "a" , "1>0" , "2>0");     register_cvar("nade_message" , "TOUCHDOWN!!");     register_cvar("knife_message" , "TOUCHDOWN!!");     register_cvar("nade_sound" , "1");     register_cvar("knife_sound" , "1"); } static const g_szSoundFile_grenade[] = "misc/grenade.wav"; static const g_szSoundFile_knife[] = "misc/humiliation.wav"; public plugin_precache() {     if(file_exists(g_szSoundFile_grenade))         precache_sound(g_szSoundFile_grenade);     if(file_exists(g_szSoundFile_knife))         precache_sound(g_szSoundFile_knife); } public event_DeathMsg() {     new id = read_data(2);     new iWeapon , iAttacker = get_user_attacker(id , iWeapon);     new iRed   = random_num(15 , 255);     new iGreen = random_num(15 , 255);     new iBlue  = random_num(15 , 255);     set_hudmessage(iRed , iGreen , iBlue , 0.10 , 0.30 , 0 , 3.0 , 6.0 , 0.1 , 0.2 , 4);     new szSoundStr[64] , szMsgStr[164];     switch(iWeapon)     {         case CSW_HEGRENADE:         {             get_cvar_string("nade_message" , szMsgStr , 163);             show_hudmessage(0 , "%s" , szMsgStr);             if(get_cvar_num("nade_sound"))             {                 format(szSoundStr , 63 , "spk %s" , g_szSoundFile_grenade);                 client_cmd(id , szSoundStr);                 client_cmd(iAttacker , szSoundStr);             }             new szUsername[33];             get_user_name(iAttacker , szUsername , 32);         }         case CSW_KNIFE:         {             get_cvar_string("knife_message" , szMsgStr , 163);             show_hudmessage(0 , "%s" , szMsgStr);             if(get_cvar_num("knife_sound"))             {                 format(szSoundStr , 63 , "spk %s" , g_szSoundFile_knife);                 client_cmd(id , szSoundStr);                 client_cmd(iAttacker , szSoundStr);             }             new szUsername[33];             get_user_name(iAttacker , szUsername , 32);         }     }     return PLUGIN_CONTINUE; }
__________________
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
Destro
Junior Member
Join Date: Aug 2005
Location: MUC
Old 04-14-2006 , 10:08  
Reply With Quote #18

wow thats great
thx a lot
__________________
81.92.166.123 - Deathmatchbude USH >>V6<<
AMXX 1.76b, Metamod 1.19p28, HLG 1.9.n10, SB 3.3, CSDM 1,7 (itemmode)
Maps: cs_assault, cs_italy, cs_militia, cs_office, cs_siege, de_aztec, de_cbble, de_dust, de_dust2, de_inferno, de_nuke, de_train and de_vertigo
more infos @ www.spassbude.info
Destro is offline
Send a message via ICQ to Destro
Switchie
Senior Member
Join Date: Mar 2006
Location: Belgium
Old 04-14-2006 , 12:52  
Reply With Quote #19

Nice plugin but why is the precache sounds not working ?
Nobody is downloading the sounds so nobody can hear it.
Or am i doing something wrong

Maybe i need precache_miscstats_sounds.amxx ?

Plz help me

Thx
__________________
Switchie is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-14-2006 , 14:14  
Reply With Quote #20

The file is in the wrong place if it's not being precached.
__________________
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 03:22.


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