Raised This Month: $ Target: $400
 0% 

Setting player name


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
steel_1988
Junior Member
Join Date: Apr 2009
Old 04-02-2009 , 07:04   Setting player name
Reply With Quote #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)
}
}
steel_1988 is offline
 


Thread Tools
Display Modes

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:16.


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