Raised This Month: $ Target: $400
 0% 

Grenade Kill


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 01-28-2009 , 10:54   Re: Grenade Kill
Reply With Quote #6

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
 



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