- Joined
- Mar 16, 2008
- Messages
- 955
Doesn't seem to work, I run this by telling another trigger to run it in GUI 1 sec into the game.
JASS:
function Trig_player_names_Actions takes nothing returns nothing
local integer x_red = StringLength(GetPlayerName(Player(0)))
local string name_red = GetPlayerName(Player(0))
loop
set x_red = x_red-1
if SubString(name_red, x_red-1, x_red+1) == "#" then
call SetPlayerName(Player(0), SubString(name_red, 0, x_red))
return
endif
endloop
endfunction