Raised This Month: $ Target: $400
 0% 

Name Drawing


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Ricky Leone
Junior Member
Join Date: Dec 2005
Old 09-13-2007 , 23:43   Name Drawing
Reply With Quote #1

Well, I'm trying to write a plugin to hide player names when you put your crosshair over them. This is for The Specialists. Here's what I have:

Code:
#include <amxmodx>

public plugin_init()
{
	register_plugin("Xavier-HPN", "1.0", "Xavier")
	
	register_cvar("amx_hidenames", "1")
}

public client_putinserver(id)
{
	if (get_cvar_num("amx_hidenames") <= 1)
		set_cvar_num("cl_drawnames", 0)
	else
		set_cvar_num("cl_drawnames", 1)
}

public client_disconnect(id)
{
	set_cvar_num("cl_drawnames", 1)
}
The thing is, I don't think cl_drawnames works in TS. I tried it, but it had no effect. What am I doing wrong? Thanks for any help.
Ricky Leone 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 16:16.


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