Raised This Month: $51 Target: $400
 12% 

Change Name


Post New Thread Reply   
 
Thread Tools Display Modes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-18-2009 , 01:01   Re: Change Name
Reply With Quote #21

Because they think european keyboard.

On french keyboard, / (us) is ! and with MAJ it's §.
To bind it, open console (or edit config.cfg), type "bind / command".
In-game, i press "!" and bind works.
It's the same for chat, have to learn US keyboard (quite fast to learn often needed keys).
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 08-20-2009 , 13:27   Re: Change Name
Reply With Quote #22

This is the fix I made, either the command name or /name can be used, chat is *always* visible so other people take note how they can change their name. I have to add that changing the name in TFC is particularly difficult, since Valve messed up: http://forums.steampowered.com/forum...d.php?t=944223

Caution: This fix might not work in CS, I think for CS it needs an additional setinfo command. I made this specifically for TFC though, where simply typing name in console is sufficient.

Code:
/* 

This plugin is originally by KyleD, I modified it slightly so you don't have to use a slash in front (useful if the keyboard layout isn't American).

I also fixed a major bug, originally global chat wasn't visible anymore because handle_say would *always* return PLUGIN_HANDLED.

version history
1.1 - inital release as described above
1.2 - minor change: made name change chat visiable so other players can see how it's done

*/

#include <amxmodx>

public plugin_init()
{
	register_plugin("ChangeName", "1.2", "pizzahut")
	register_concmd("say","handle_say")
}

public handle_say(id)
{
	new message[128], command[7], name[32]
	read_args(message,127)
	remove_quotes(message)
	strbreak(message, command, 6, name, 31)
	if(equali(command, "name", 6) || equali(command, "/name", 6))
	{
		client_cmd(id, "name ^"%s^"", name) 
		// return PLUGIN_HANDLED
	}
	return PLUGIN_CONTINUE
}
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.
pizzahut 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 16:37.


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