Raised This Month: $ Target: $400
 0% 

amx_plyr_deaths


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
CyberStars
Senior Member
Join Date: May 2013
Old 11-23-2013 , 09:33   Re: amx_plyr_deaths
Reply With Quote #4

Code:
public plugin_init() 
{
          register_event("DeathMsg", "PlayerKilled", "a");
}

public PlayerKilled()
{ 
	new killerIndx = read_data(1);
	new victimIndx = read_data(2);

	if(0 < killerIndx) {
                 new killerName[128];
                 get_user_name(killerIndx, killerName, 127);
	}
		
	if(0 < victimIndx) {
                 new victimName[128];
                 get_user_name(victimIndx, victimName, 127);
	}
}

Last edited by CyberStars; 11-23-2013 at 09:34.
CyberStars is offline
 



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 23:20.


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