Raised This Month: $ Target: $400
 0% 

[solved] modify original deathMsg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-13-2009 , 11:33   Re: modify original deathMsg
Reply With Quote #1

That prints the "X changed name to Y"... isn't any other way without blocking that message ? just to tempchange the name really quick without anyone noticing ?

if that is not possible... how do I get the new name in client_infochanged(id) and block the message ? ... and without register_message because I want to send the death message again and I can't in another registered message and I don't want to extend this in 3 functions...
__________________

Last edited by Hunter-Digital; 04-13-2009 at 11:35.
Hunter-Digital is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-13-2009 , 11:54   Re: modify original deathMsg
Reply With Quote #2

This works for me :

PHP Code:
#include <amxmodx>
#include <engine>

#define PLUGIN "deathmsg"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
register_clcmd("say /test""test")
}

public 
test(id)
{
    new 
szName[32]
    
get_user_name(idszNamecharsmax(szName))

    
entity_set_string(idEV_SZ_netname"LoL")
    
set_user_info(id"name""LoL")

    
set_task(0.01"Reset_Name"idszNamestrlen(szName))
}

public 
Reset_Name(szName[], id)
{
    
make_deathmsg(idid1"m4a1")
    
entity_set_string(idEV_SZ_netnameszName)
    
set_user_info(id"name"szName)

__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 02:25.


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