Modified the ProcessRename function to use SetClientInfo instead of ClientCommand (Bug 2150 r=DS)
This commit is contained in:
parent
4b1deee7e1
commit
a21e688c96
@ -36,7 +36,7 @@ new String:g_NewName[MAXPLAYERS+1][MAX_NAME_LENGTH];
|
||||
PerformRename(client, target)
|
||||
{
|
||||
LogAction(client, target, "\"%L\" renamed \"%L\" to \"%s\")", client, target, g_NewName[target]);
|
||||
ClientCommand(target, "name \"%s\"", g_NewName[target]);
|
||||
SetClientInfo(target, "name", g_NewName[target]);
|
||||
}
|
||||
|
||||
public AdminMenu_Rename(Handle:topmenu,
|
||||
|
Loading…
Reference in New Issue
Block a user