Raised This Month: $ Target: $400
 0% 

Display message after player death


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Independence
Junior Member
Join Date: Dec 2009
Location: Ukraine
Old 01-10-2010 , 08:08   Display message after player death
Reply With Quote #1

Hi all. I need such simple plugin: after player death he can see some constant message (HUD and chat). It's very important for me.
Independence is offline
SpILL
Veteran Member
Join Date: Oct 2009
Location: Karachi, Pakistan
Old 01-10-2010 , 08:24   Re: Display message after player death
Reply With Quote #2

Like?
[IMG]http://img152.**************/img152/5870/victim.jpg[/IMG]
__________________


SpILL is offline
Independence
Junior Member
Join Date: Dec 2009
Location: Ukraine
Old 01-10-2010 , 08:25   Re: Display message after player death
Reply With Quote #3

Quote:
Originally Posted by SpILL View Post
Like?
[IMG]http://img152.**************/img152/5870/victim.jpg[/IMG]
Yes! It would be excellent, if it was fully green message!

P.S.: I don't need HP or killer/victim's name to display, just simple text (const).

Last edited by Independence; 01-10-2010 at 08:28.
Independence is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 01-10-2010 , 09:18   Re: Display message after player death
Reply With Quote #4

it'great...but can you add kill distance..i have knife server
btw it's better with that colors, than full green
OvidiuS is offline
Send a message via Skype™ to OvidiuS
SpILL
Veteran Member
Join Date: Oct 2009
Location: Karachi, Pakistan
Old 01-10-2010 , 09:28   Re: Display message after player death
Reply With Quote #5

Quote:
Originally Posted by Independence View Post
Yes! It would be excellent, if it was fully green message!

P.S.: I don't need HP or killer/victim's name to display, just simple text (const).
Okay, here you go..
While Killed:
[IMG]http://img695.**************/img695/7434/killed.png[/IMG]
Being Killed:
[IMG]http://img696.**************/img696/6859/beingkilled.png[/IMG]
I have included Killer/Victim's name cause if i remove those there will be nothing to show except You Killed, rofl!
If you still want to show only You Killed then do let me know via replying on this thread not via Pimps.!
Attached Files
File Type: sma Get Plugin or Get Source (kill_chat_msg.sma - 666 views - 3.3 KB)
File Type: txt kill_chat_message.txt (1.8 KB, 193 views)
__________________


SpILL is offline
Independence
Junior Member
Join Date: Dec 2009
Location: Ukraine
Old 01-10-2010 , 09:35   Re: Display message after player death
Reply With Quote #6

SpiLL, thank you. I will try to remove functions, which I don't need.
Independence is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-10-2010 , 10:29   Re: Display message after player death
Reply With Quote #7

Here's small version.
Code:
#include < amxmodx > public plugin_init( ) {     register_plugin( "Kill Message", VERSION, "Unknown Author" );         register_event( "DeathMsg", "EventDeathMsg", "a", "1>0" );         g_iMsgSayText = get_user_msgid( "SayText" ); } public EventDeathMsg( ) {     new iKiller = read_data( 1 ), iVictim = read_data( 2 );         if( iKiller != iVictim ) {         new szKillerName[ 32 ], szVictimName[ 32 ];         get_user_name( iKiller, szKillerName, 31 );         get_user_name( iVictim, szVictimName, 31 );                 GreenPrint( iKiller, "^4You killed %s!", szVictimName );         GreenPrint( iVictim, "^4You have been killed by %s!", szKillerName );     } } GreenPrint( id, const message[ ], any:... ) {     new szMessage[ 192 ];     vformat( szMessage, 191, message, 3 );         message_begin( MSG_ONE_UNRELIABLE, g_iMsgSayText, _, id );     write_byte( id );     write_string( szMessage );     message_end( ); }
__________________

Last edited by xPaw; 01-10-2010 at 11:45.
xPaw is offline
Old 01-10-2010, 10:31
xPaw
This message has been deleted by xPaw. Reason: Double post
SpILL
Veteran Member
Join Date: Oct 2009
Location: Karachi, Pakistan
Old 01-10-2010 , 10:43   Re: Display message after player death
Reply With Quote #8

Quote:
Originally Posted by xPaw View Post
Here's small version.
Code:
#include < amxmodx > public plugin_init( ) {     register_plugin( "Kill Message", VERSION, "Unknown Author" );         register_event( "DeathMsg", "EventDeathMsg", "a", "1>0" );         g_iMsgSayText = get_user_msgid( "SayText" ); } public EventDeathMsg( ) {     new iKiller = read_data( 1 ), iVictim = read_data( 2 );         if( iKiller != iVictim ) {         new szKillerName[ 32 ], szVictimName[ 32 ];         get_user_name( iKiller, szKillerName, 31 );         get_user_name( iVictim, szVictimName, 31 );                 GreenPrint( iKiller, "^4You killed %s!", szVictimName );         GreenPrint( iVictim, "^4You killed have been killed by %s!", szKillerName );     } } GreenPrint( id, const message[ ], any:... ) {     new szMessage[ 192 ];     vformat( szMessage, 191, message, 3 );         message_begin( MSG_ONE_UNRELIABLE, g_iMsgSayText, _, id );     write_byte( id );     write_string( szMessage );     message_end( ); }
OMG.! xPaw, why you are so good in this case Just like a ripper!

PHP Code:
        GreenPrintiVictim"^4You killed have been killed by %s!"szKillerName 
Would have been,
PHP Code:
        GreenPrintiVictim"^4You have been killed by %s!"szKillerName 
Respectively correction do not mind. =)
Twice posts.
__________________


SpILL is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-10-2010 , 11:45   Re: Display message after player death
Reply With Quote #9

Yea lol, it should
__________________
xPaw is offline
Old 01-10-2010, 13:58
Independence
This message has been deleted by Independence.
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 16:16.


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