Raised This Month: $ Target: $400
 0% 

How to forbid all users using cmd:"name" in their


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mobe
Junior Member
Join Date: Jun 2005
Old 09-12-2005 , 11:02   How to forbid all users using cmd:"name" in their
Reply With Quote #1

How to forbid all users using cmd:"name" in their console?
then forbid them changes name when Playing.
mobe is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 09-12-2005 , 13:00  
Reply With Quote #2

What are you looking for?
A plugin that allows people only one name for your server?
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 09-12-2005 , 14:42  
Reply With Quote #3

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
xeroblood is offline
Send a message via MSN to xeroblood
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 09-12-2005 , 17:27  
Reply With Quote #4

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?
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
mobe
Junior Member
Join Date: Jun 2005
Old 09-12-2005 , 21:08  
Reply With Quote #5

,yes,Suicid3,Can u share ur "One name plugin" for me ?
that's just what I was looking for!
mobe 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 14:34.


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