Raised This Month: $ Target: $400
 0% 

amx_plyr_deaths


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ezio_auditore
Senior Member
Join Date: May 2013
Old 11-23-2013 , 04:18   amx_plyr_deaths
Reply With Quote #1

how to make a function which gets called when a player dies and how to get his killer's name
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
ModearTTT
Junior Member
Join Date: Aug 2012
Old 11-23-2013 , 05:50   Re: amx_plyr_deaths
Reply With Quote #2

More details? I don't make this plugin, for i don't known why and how..
ModearTTT is offline
ezio_auditore
Senior Member
Join Date: May 2013
Old 11-23-2013 , 06:43   Re: amx_plyr_deaths
Reply With Quote #3

Quote:
Originally Posted by ModearTTT View Post
More details? I don't make this plugin, for i don't known why and how..
i am up for a gameplay plugin in which the leaders from each team glow at roundstart...
who kills the glowing man, gets his glow...

at roundend, only glowing person surives and get extra frags and money
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
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
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 23:20.


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