Raised This Month: $ Target: $400
 0% 

Hide deathmsg


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Snoozy
New Member
Join Date: Apr 2012
Old 04-22-2012 , 13:04   Re: Hide deathmsg
Reply With Quote #3

Okay so I still can't manage to get it working, this is what I did, apologies in advance, I'm probably failing.

This is the function
Code:
public hook_deathmsg(msgId,msgDest,iReceiver){
    new pevVictim = get_msg_arg_int( 2 )
    if(UserData[pevVictim][HideDeathMSG]==true){
		UserData[pevVictim][HideDeathMSG]=false
		return PLUGIN_HANDLED
	}
    return PLUGIN_CONTINUE
}
This is the code in plugin init
Code:
public plugin_init(){
	register_plugin("Main","1.0","Snoozy")
	gmsgDeathMsg = get_user_msgid("DeathMsg")
	register_message(gmsgDeathMsg,"hook_deathmsg")
}
Snoozy is offline
 



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 07:51.


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