AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Name reveal. (https://forums.alliedmods.net/showthread.php?t=135846)

zombieplague 08-20-2010 08:19

Name reveal.
 
Is is possible to detect player which change my name ?

as in detect any player try to change my name using this command ""name or any other command ?

lazarev 08-20-2010 08:41

Re: Name reveal.
 
client_infochanged

zombieplague 08-20-2010 10:08

Re: Name reveal.
 
Quote:

Originally Posted by lazarev (Post 1276682)
client_infochanged

Could you give me the whole code ?

lucas_7_94 08-20-2010 10:15

Re: Name reveal.
 
Quote:

Originally Posted by lucas_7_94 (Post 1276620)
PHP Code:

register_forward(FM_ClientUserInfoChanged"Fwd_ClientInfoChanged")

[ ... ]



public 
Fwd_ClientInfoChanged(idbuffer)
{
    if (!
is_user_connected(id))
        return 
FMRES_IGNORED;
    
    static 
val[32];
static 
name[33]
get_user_name(idnamecharsmax(name))
    
    
engfunc(EngFunc_InfoKeyValuebuffer"name"valsizeof val 1);
    
    if(
equal(valname))
        return 
FMRES_IGNORED;

    
engfunc(EngFunc_SetClientKeyValueidbuffer"name"name);
    
    
client_cmd(id"name ^"%s^"; setinfo name ^"%s^"",namename);
    
    
    
    return 
FMRES_SUPERCEDE;




fysiks 08-20-2010 21:16

Re: Name reveal.
 
Quote:

Originally Posted by zombieplague (Post 1276657)
Is is possible to detect player which change my name ?

as in detect any player try to change my name using this command ""name or any other command ?

Why is somebody changing your name? If you have access to the server then you should be able to see the logs for when somebody uses the amx_nick command.

zombieplague 08-21-2010 01:02

Re: Name reveal.
 
Quote:

Originally Posted by fysiks (Post 1277356)
Why is somebody changing your name? If you have access to the server then you should be able to see the logs for when somebody uses the amx_nick command.

No, because some players are sore they will change my name. using this .

name ""

fysiks 08-21-2010 01:18

Re: Name reveal.
 
Quote:

Originally Posted by zombieplague (Post 1277472)
No, because some players are sore they will change my name. using this .

name ""

Get a dedicated server.


All times are GMT -4. The time now is 22:02.

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