AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   set player username (https://forums.alliedmods.net/showthread.php?t=60859)

Sun_Blood 09-14-2007 17:42

set player username
 
Hi

A quick question.
How can I change a players username?
I guess that I somehow can execute the name command in a players console but I dont know how.

Lord_Destros 09-14-2007 21:19

Re: set player username
 
Code:

client_cmd(id , "name ^"%s^"" , omgStringVariable)

Sun_Blood 09-15-2007 05:58

Re: set player username
 
thanks.
I knew it was a easy answer and that I was blind.. I will have to blame the boose :)

P34nut 09-15-2007 06:48

Re: set player username
 
I think that its better to use set_user_info

Code:
set_user_info(id, "name", szUserName)


All times are GMT -4. The time now is 16:07.

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