AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HOWTO] disable #Cstrike_Name_Change for a while (https://forums.alliedmods.net/showthread.php?t=95017)

xlenonz 06-18-2009 14:01

[HOWTO] disable #Cstrike_Name_Change for a while
 
hi,

i change player name in plugin.

but i dont want if i change that player name , dont see xx changed name to yy.

i found that but , that disable all time.
i want only disable when i change player name
Code:

public plugin_init()
{
  register_message(get_user_msgid("SayText"), "block_changename")
}

public block_changename(msgid, msgdest, msgent) {
        new sz[80]
        get_msg_arg_string(2, sz, 79)
        if(containi(sz, "#Cstrike_Name_Change") != -1)
                return PLUGIN_HANDLED
 
        return PLUGIN_CONTINUE
}


stupok 06-19-2009 00:08

Re: [HOWTO] disable #Cstrike_Name_Change for a while
 
http://forums.alliedmods.net/showthread.php?p=424320


All times are GMT -4. The time now is 15:27.

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