look i wana do this command:
addCommandHandler( "go", gotoplayerposition )
function gotoplayerposition ( theplayer, command )
local playerTeam = getPlayerTeam ( source )
if ( playerTeam ) then
local name = getTeamName ( playerTeam )
if name == "Owner" then
local find = findPlayer( player )
if find == false then
outputChatbox ( "No player with that name." )
else
local px, py, pz = getElementPosition ( find )
setElementPosition (source, px, py, pz )
end
else
outputChatbox ( "Not an admin!" )
end
end
end
for the owner and the admin team but when i try to do this i have an error help please