Raised This Month: $ Target: $400
 0% 

Death messages


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
reinert
Veteran Member
Join Date: Feb 2007
Old 06-08-2010 , 04:32   Death messages
Reply With Quote #1

Hey, is it possible to write a message instead of Death messages. I mean I want to write there something like: my server website link or something else.

is it possible to do it with client_print or

Message(id)
{
const SOMETHING_HERE = 4
static const msg[] = "www.blabla.com"

message_begin(MSG_ONE_UNRELIABLE, gmsgTextMsg, .player=id)
write_byte( SOMETHING_HERE )
write_string( msg )
message_end()
}
reinert is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 06-08-2010 , 06:30   Re: Death messages
Reply With Quote #2

yeah it is
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
reinert
Veteran Member
Join Date: Feb 2007
Old 06-08-2010 , 07:11   Re: Death messages
Reply With Quote #3

maybe someone can give me an example or just tell how to do it.
reinert is offline
FlyingHorse
Senior Member
Join Date: Apr 2010
Location: Under your bed.
Old 06-08-2010 , 08:10   Re: Death messages
Reply With Quote #4

try this (untested)
PHP Code:
#include <amxmodx>
#include <hamsandwich>

new PLUGIN[ ] = "website on death"
new VERSION[ ] = "1.0"
new AUTHOR[ ] = "FlyingHorse"

new websitename[ ] = "http://Your-website.com" // enter website here

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_Killed"player""Event_Ham_Killed")
}

public 
Event_Ham_Killed(victimattackershouldgib)
{
    if(!
is_user_alive(victim))
    {

        
client_print(victimprint_chat"%s"websitename)
    }

FlyingHorse is offline
Send a message via Skype™ to FlyingHorse
reinert
Veteran Member
Join Date: Feb 2007
Old 06-08-2010 , 08:41   Re: Death messages
Reply With Quote #5

oh I mean the message will be always shown, and Deathmessages will not be displayed at all.
reinert is offline
Reply


Thread Tools
Display Modes

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 05:24.


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