|
Author
|
Message
|
|
Junior Member
|

04-02-2009
, 07:04
Setting player name
|
#1
|
Im not sure if this is an AMX bug or something? But with the following code, when you connect the first time it forces your name.. But if you retry it ignores it and does not force your name, it keeps it as whatever your counter-strike config was set to.
Any ideas? I need to force the name each time they connect.
public client_connect(id)
{
new newName[33]
get_user_info(id,"name",newName,32)
if(containi(newName,"[NEW NAME]") == -1)
{
format(newName,32,"[NEW NAME] %s",newName)
set_user_info(id,"name",newName)
}
}
|
|
|
|