AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to forbid all users using cmd:"name" in their (https://forums.alliedmods.net/showthread.php?t=17953)

mobe 09-12-2005 11:02

How to forbid all users using cmd:"name" in their
 
How to forbid all users using cmd:"name" in their console?
then forbid them changes name when Playing.

Xanimos 09-12-2005 13:00

What are you looking for?
A plugin that allows people only one name for your server?

xeroblood 09-12-2005 14:42

Something like this (not tested fully):
Code:

public client_infochanged( id )
{
    new szNewName[32]
    new szOldName[32]

    get_user_info( id, "name", szNewName, 31 )
    get_user_name( id, szOldName, 31 )

    if( !equal( szNewName, szOldName ) )
        set_user_info( id, "name", szOldName )

    return PLUGIN_CONTINUE
}

or instead of this:
Code:

if( !equal( szNewName, szOldName ) )
        set_user_info( id, "name", szOldName )

you could try this:
Code:

if( !equal( szNewName, szOldName ) )
        return PLUGIN_HANDLED


Xanimos 09-12-2005 17:27

The reason I asked is because I just recently made a One name plugin.
It allows the user only one name for your server. Admins can forcefully change players names and can also allow the players themselves to change their names.

Is this what you were looking for?

mobe 09-12-2005 21:08

:o ,yes,Suicid3,Can u share ur "One name plugin" for me ?
that's just what I was looking for!


All times are GMT -4. The time now is 14:34.

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