AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   restrict name error (https://forums.alliedmods.net/showthread.php?t=233280)

plazma 01-12-2014 13:17

restrict name error
 
thanks all!

fysiks 01-13-2014 02:16

Re: restrict name error
 
You cannot send the "name" command to a player's console. You have to use set_user_info(id, "name", "new name").

Monster Truck 01-13-2014 02:40

Re: restrict name error
 
PHP Code:

client_cmdid"name ^"%s^""g_szInlocuitor ); 

:arrow:

PHP Code:

set_user_info(id"name""the new name"

Don't forget to add g_szInlocuitor on this lane after

Damn, u're faster than me :) My bad i didn't reload the thread :s

plazma 01-13-2014 07:13

Re: restrict name error
 
Thanks work fine, but how i can make the player change the name in game example www.xx.com and to rename "myweb.com" ? :(

fysiks 01-13-2014 09:00

Re: restrict name error
 
Quote:

Originally Posted by plazma (Post 2085291)
Thanks work fine, but how i can make the player change the name in game example www.xx.com and to rename "myweb.com" ? :(

We told you how to change their name.

Monster Truck 01-13-2014 12:29

Re: restrict name error
 
What did you actually want ? You got your answer ?

plazma 01-13-2014 14:35

Re: restrict name error
 
I join the game and I change my name in server blabla.com why not change automatic the my name to myweb.com understand what want to do ?

Monster Truck 01-14-2014 09:57

Re: restrict name error
 
Then,


PHP Code:

set_user_infoid"name ^"%s^""g_szInlocuitor ); 

I just added, g_szInlocuitor,

YamiKaitou 01-14-2014 10:14

Re: restrict name error
 
Quote:

Originally Posted by Monster Truck (Post 2085775)
PHP Code:

set_user_infoid"name"g_szInlocuitor ); 


Fixed

Monster Truck 01-14-2014 10:17

Re: restrict name error
 
Ah ofc with set_user_info ...

Thank you, i'm too slow today :s


All times are GMT -4. The time now is 10:04.

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