Its just:

PHP Code:
player setClientCvar("name""^1new name!"); 
Do you need a whole rename-script?