Raised This Month: $ Target: $400
 0% 

Help?, how do i find out who killed who?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-07-2012 , 09:23   Help?, how do i find out who killed who?
Reply With Quote #1

Hello people,

im trying to find out, who killed who. (how to find the victim)

For example: if im in a last request vs someone and i kill him it says
PHP Code:
ColorChat(0GREEN"%s has won the battle!"name
Someone help?
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.

Last edited by Bilal Pro; 04-07-2012 at 09:27.
Bilal Pro is offline
BeeFighter
Member
Join Date: Feb 2012
Old 04-07-2012 , 10:11   Re: Help?, how do i find out who killed who?
Reply With Quote #2

PHP Code:
new iKiller read_data)

new 
szName[33]
get_user_name(iKillerszName31)

ColorChat(0GREEN"%s has won the battle!"name
read_data(1) = killer
read_data(2) = victim
read_data(3) = headshot
__________________
www.Gstar-Gaming.net

Servers:
Jailbreak
HidenSeek
Knife
Deathrun
Public

Join us now: www.gstar-gaming.net
BeeFighter is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 04-07-2012 , 10:23   Re: Help?, how do i find out who killed who?
Reply With Quote #3

client_death() ?
__________________
kramesa is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-07-2012 , 10:29   Re: Help?, how do i find out who killed who?
Reply With Quote #4

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>

public plugin_init() {
    
register_plugin("Killer""1.0""NapoleoN#")
    
    
register_event("DeathMsg""eDeath""a")
}

public 
eDeath() {
    new 
szName[32]; get_user_name(read_data(1), szNamecharsmax(szName))
    
    
client_print(0print_chat"%s has won the battle"szName)

untested
__________________
Napoleon_be is online now
Send a message via Skype™ to Napoleon_be
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-07-2012 , 11:09   Re: Help?, how do i find out who killed who?
Reply With Quote #5

Guys, i want that if he killed the guy it says the message not on every death

Because now, when i teamkill someone the message appears.
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.

Last edited by Bilal Pro; 04-07-2012 at 11:12.
Bilal Pro is offline
BeeFighter
Member
Join Date: Feb 2012
Old 04-07-2012 , 11:17   Re: Help?, how do i find out who killed who?
Reply With Quote #6

Yeah, you made a blockmaker.. so I assume you can customise it to your needs.
__________________
www.Gstar-Gaming.net

Servers:
Jailbreak
HidenSeek
Knife
Deathrun
Public

Join us now: www.gstar-gaming.net
BeeFighter is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-07-2012 , 11:33   Re: Help?, how do i find out who killed who?
Reply With Quote #7

I've never worked with Ham_killed thats why i am here.
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 04-07-2012 , 12:16   Re: Help?, how do i find out who killed who?
Reply With Quote #8

Code:
#include <amxmodx> #include <csx> public client_death(killer, victim, wpnindex, hitplace, TK) {     new szName[32];     get_user_name(killer, szName, charsmax(szName));         client_print(0, print_chat, "%s has won the battle", szName); }
__________________

Last edited by kramesa; 04-07-2012 at 12:35.
kramesa is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-07-2012 , 12:23   Re: Help?, how do i find out who killed who?
Reply With Quote #9

Uncomment the second condition to only show when a killer kills an enemy (no TK).
PHP Code:
#include <amxmodx>

public plugin_init() 
{
    
register_plugin("Killer""1.0""NapoleoN#")
    
    
register_event"DeathMsg" "eDeath" "a" )
}

public 
eDeath() 
{
    new 
iKiller read_data);
    
    if ( 
iKiller /* && ( get_user_team( iKiller ) != get_user_team( read_data( 2 ) ) */ )
    {
        new 
szName[32]; 
        
get_user_nameiKiller szName charsmaxszName ) )
        
client_print(0print_chat"%s killed someone"szName )
    }

__________________

Last edited by Bugsy; 04-07-2012 at 12:24.
Bugsy is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-07-2012 , 12:34   Re: Help?, how do i find out who killed who?
Reply With Quote #10

PHP Code:
    else if (HasSprayduel[id] == true)
    {
        if ( 
iKiller /* && ( get_user_team( iKiller ) != get_user_team( read_data( 2 ) ) */ )
        {
        new 
szName[32]; 
        
get_user_nameiKiller szName charsmaxszName ) )
        
ColorChat(0GREY"[LR] ^4%s^1 has won the ^4last request"szName )
        }

        
give_item(id"weapon_knife")
        
give_item(tempid"weapon_knife")
        
get_user_name(idname31)
        
get_user_name(tempidname31)
        
ColorChat(0GREY"[LR] ^4%s^1 chosen ^4%s^1 for a ^4spray^1 contest!"namename2)
        
ColorChat(0GREY"[LR] ^1You both have^4 10^1 seconds to spray!")
        
set_task(10.0"EndSprayContest"id)
    } 
wont pop up the freakin message :S
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro 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 19:10.


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