AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Death messages (https://forums.alliedmods.net/showthread.php?t=129026)

reinert 06-08-2010 04:32

Death messages
 
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()
}

SaM.ThE.MaN 06-08-2010 06:30

Re: Death messages
 
yeah it is

reinert 06-08-2010 07:11

Re: Death messages
 
maybe someone can give me an example or just tell how to do it.

FlyingHorse 06-08-2010 08:10

Re: Death messages
 
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)
    }



reinert 06-08-2010 08:41

Re: Death messages
 
oh I mean the message will be always shown, and Deathmessages will not be displayed at all.


All times are GMT -4. The time now is 05:24.

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