Nagato-rus, Code
function Trig_name_Actions takes nothing returns nothing
local string s=SubString(GetEventPlayerChatString(), 7, StringLength(GetEventPlayerChatString()))
call SetPlayerName( Player(0), s )
endfunction
//===========================================================================
function InitTrig_name takes nothing returns nothing
local trigger trig= CreateTrigger()
call TriggerRegisterPlayerChatEvent( trig, Player(0), "-name ", false )
call TriggerAddAction( trig, function Trig_name_Actions )
endfunction