hello everyone,
am trying to make script which change playernick to his accountname after he login ( making player having same nick as his account name if he log in)
iv'e tried this but it did not worked:
addEventHandler ( 'onPlayerLogin', getRootElement ( ),
function (, changnick )
localgetPlayerAccount(theCurrentAccount)
then
setPlayerName ( sPlayerElement, thecurrentaccount )
i know there are many mistakes in this script but am just new and i hope to learn
please help me to fix it