Raised This Month: $ Target: $400
 0% 

play sound on team kill


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 05-06-2007 , 16:48   Re: play sound on team kill
Reply With Quote #7

Quote:
Originally Posted by regalis View Post
If you are in Terrorist team and make suicide, then you are killed by a Terrorist --> there is nothing wrong!

But maybe you would like to extend this little code...

Try something like this:
Code:
public plugin_int()
{
    register_event("DeathMsg","event_death","a","1>0")
}
 
plubic event_death(id)
{
    new Killer = read_data(1) 
    new Victim = read_data(2) 
    if(!equal(Killer, Victim))
    {
        new teamA = get_user_team(Killer)
        new teamB = get_user_team(Victim)
        if(teamA == teamB)
        {
            //play sound
        }
    }
}
Code:
/home/groups/amxmodx/tmp3/textkK55u1.sma(16) : error 035: argument type mismatch (argument 1)
__________________

flyeni6 is offline
Send a message via AIM to flyeni6
 



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 06:39.


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