Raised This Month: $ Target: $400
 0% 

message appears when the player is killed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Buckshot
Senior Member
Join Date: Mar 2014
Location: Sweden
Old 04-13-2014 , 17:42   Re: message appears when the player is killed
Reply With Quote #4

PHP Code:
#include < amxmodx > 
#include < hamsandwich >

public plugin_init( ) {
    
register_plugin"Death Message""1.0""BuckShot" )
    
RegisterHamHam_Killed"player""Fwd_Ham_Killed_Post")
}

public 
Fwd_Ham_Killed_PostiVictimiAttacker ) {
    new 
szAttackername32 ]
    new 
szVictimname32 ]
    
get_user_nameiAttackerszAttackernamecharsmaxszAttackername ) )
    
get_user_nameiVictimszVictimnamecharsmaxszVictimname ) )
    
client_print0print_chat"%s was killed by %s"szVictimnameszAttackername )

Example. Will display a message saying "Player was killed by player" when a player dies.
__________________
PM me for private work.



Last edited by Buckshot; 04-13-2014 at 17:44.
Buckshot is offline
Send a message via Skype™ to Buckshot
 



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 17:53.


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