Modified the ProcessRename function to use SetClientInfo instead of ClientCommand (Bug 2150 r=DS)

This commit is contained in:
Liam 2008-12-29 23:38:28 -05:00
parent 4b1deee7e1
commit a21e688c96

View File

@ -36,7 +36,7 @@ new String:g_NewName[MAXPLAYERS+1][MAX_NAME_LENGTH];
PerformRename(client, target) PerformRename(client, target)
{ {
LogAction(client, target, "\"%L\" renamed \"%L\" to \"%s\")", client, target, g_NewName[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, public AdminMenu_Rename(Handle:topmenu,