09-17-2015, 03:27 AM
I'm try to rename player to custom name on spown. But, it's do not work for me.
Code:
cPluginManager.AddHook(cPluginManager.HOOK_PLAYER_SPAWNED, MyOnPlayerSpawned);
function MyOnPlayerSpawned(Player)
Player:SetCustomName("CustomName");
Player:SetName("CustomName2");
end