Raised This Month: $ Target: $400
 0% 

set_user_info when connecting


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sparkey
Senior Member
Join Date: May 2010
Old 05-13-2010 , 14:32   set_user_info when connecting
Reply With Quote #1

Is it possible to set the name of a player before he is connected?

I am getting his playername from a mysql database based on his steamid and would like to connect him with his playername and not get "player has changed his name to playername" in the chat.

thx
sparkey is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-13-2010 , 16:11   Re: set_user_info when connecting
Reply With Quote #2

If the player is not connected then you can't communicate with them.
__________________
fysiks is offline
sparkey
Senior Member
Join Date: May 2010
Old 05-13-2010 , 17:20   Re: set_user_info when connecting
Reply With Quote #3

well when u say it like that my question sound kinda stupid hehe

The problem is that now i got a task running every 10 second checking alot of stuff including if the name is the same as the one in the database but if it catches a player that has not gotten his name changed yet and is still connecting it will kick him also.

Maybe there is a better way to do this?
sparkey is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-13-2010 , 17:41   Re: set_user_info when connecting
Reply With Quote #4

Check the name in client_infochanged(). Look at some swear filters that filter names.
__________________
fysiks 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 03:41.


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