Raised This Month: $ Target: $400
 0% 

Grenade Kill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 01-28-2009 , 09:54   Re: Grenade Kill
Reply With Quote #1

Hey,

oh damn.thats right. idk why i changed precache :-O sry ma bad.ill edit ma post now :-D & ty
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 01-28-2009 , 10:00   Re: Grenade Kill
Reply With Quote #2

Also, it's spk, not speak, and you don't need to put quotes(") around the sound.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 01-28-2009 , 10:54   Re: Grenade Kill
Reply With Quote #3

Quote:
Originally Posted by Dores View Post
Also, it's spk, not speak, and you don't need to put quotes(") around the sound.
Hey,

u mean me?

PHP Code:
#include <amxmodx>
#include <amxmisc>
 
new g_Enable
 
public plugin_init()
{
        
register_plugin("Grenade Kill""1.0""hleV")
 
        
g_Enable register_cvar("gk_enable""1")
 
        
register_event("DeathMsg""playerDeath""a""1>0")
}
 
public 
playerDeath()
{
        new 
killer read_data(1)
        new 
victim read_data(2)
        new 
weapon[8]
        
read_data(4weapon7)
 
        if (
get_pcvar_num(g_Enable) && killer != victim && equal(weapon"grenade"))
                
client_cmd(victim"spk misc/grenadekill")
}
 
public 
plugin_precache()
        
precache_sound("misc/grenadekill.wav"
I think its now right.. i edited ma first post
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 01-28-2009 , 10:56   Re: Grenade Kill
Reply With Quote #4

Quote:
Originally Posted by Dores View Post
Also, it's spk, not speak, and you don't need to put quotes(") around the sound.
Yes, you should. It helps.
BOYSplayCS is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 01-28-2009 , 11:11   Re: Grenade Kill
Reply With Quote #5

Quote:
Originally Posted by BOYSplayCS View Post
Yes, you should. It helps.
With what?
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-28-2009 , 13:05   Re: Grenade Kill
Reply With Quote #6

speak works, difference is that use speak is cutting the previous sound (if a sound was playing) whereas spk play the sound over the previous one.

Use quote is needed when you want to play 2 sounds in a row : "spk ^"vox/ two one^"", but it's not needed for a single sound.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 01:44.


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