message appears when the player is killed
everything is there who can help me. if a player is killed will display a message !! :)
|
Re: message appears when the player is killed
What kind of message do you want? Chat message, or HUD? And, what to be the text of the message, maybe some colors?
|
Re: message appears when the player is killed
PHP Code:
|
Re: message appears when the player is killed
Quote:
This code will show an meesage to a victim and one msg to the victim if headshot the message of the victim will be : Code:
You have been headshoted !Code:
You have been normal killed (without headshot)Code:
You give headshot to other playerCode:
You normal kill the player (without headshot)PHP Code:
|
Re: message appears when the player is killed
And here I've added some more abbilities in your messages, swapped! I've got the victim and attacke names, also added some colors to the chat messages! Here you go:
PHP Code:
|
Re: message appears when the player is killed
Quote:
|
Re: message appears when the player is killed
Quote:
But i need you to ask "why?" to include a new module just for print a message in chat ? when we can use deathmsg. |
Re: message appears when the player is killed
Ok,let's test:
DeathMsg: Code:
date: Thu Apr 17 03:51:47 2014 map: fy_snowCode:
date: Thu Apr 17 03:53:58 2014 map: fy_snowregister_event | 1 | 0.000003 / 0.000003 / 0.000003 death_msg_function | 1 | 0.000011 / 0.000011 / 0.000011 RegisterHam | 1 | 0.000041 / 0.000041 / 0.000041 Fwd_Ham_Killed_Post | 1 | 0.000008 / 0.000008 / 0.000008 Both are called just 1 time. Ham Killed is faster( 0.000008 ).. So, Ham Killed is better than DeathMsg( in terms of duration of execution ). |
Re: message appears when the player is killed
Quote:
|
Re: message appears when the player is killed
Quote:
This guy wants to learn how to display a message when a player is killed, he doesn't tell us WHEN he wants to detect when a player is killed, if he jumps from a cliff, gets shot or dies by the bombs explosion. Ham_Killed will detect all types of deaths. Deathmsg will not display when a player is killed by bomb explosion for example, and i think there are a few other types of deaths too that deathmsg can't find... Then why teach him deathmsg if he wants to check when a player is killed by a bomb explosion.. we don't know if he wants that or not? He did not specify a reason to when he wants to check a player death, and in what way... So i just learned him ham_killed. Your method will not work if that's what he wants. What is the point of even arguing? :S |
| All times are GMT -4. The time now is 17:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.