A base? Do it you in Map Editor and for go to the base you can use:
addCommandHandler
setElementPosition
getElementType
Also use:
createTeam
getPlayerTeam
getTeamName
setElementModel
Sorry if I'm wrong, but I don't know what you're going to try.
You have to use triggerClientEvent !, Because onPlayerLogin is a server side event, And playSound is a client side function ..
Yeah, I forgot... Sorry & Calm down Pres[T]ege .__.