local tag = -1
addEventHandler('onPlayerJoin', root,
local tag = tag + 1
function(oldNick, newNick)
name = getPlayerName(source)
setPlayerName ( source, "Guest_".. tag )
end
)
addEventHandler('onPlayerLogin', root,
function ()
setPlayerName ( source, name )
end
)
any idea how to make this work , i want to change the player name into guest_*** if he or she hasnt logged in , and when logged in i want the name to be changed back to name they joined from