1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
addhook("name", "nameControl")
function nameControl(id, oldname, newname, forced)
	if forced == 1 then
		return 0
	else
		return 1
	end
end
I use this command as described in tutorial, why doesn't it work?
name control
1 
Offline
Quattro
If a name change is only scheduled, the name hook will be executed normally (with force 0). You can check yourself if it's just a schedule by checking the health/team of the player (dead/spec = schedule only). It can be cancelled already at this point by returning 1.