I used this, but even the simple setElementDimension is bugged out somehow...
function setdim(thePlayer, cmd, targetPlayer, szam)
if getElementData(thePlayer, "acc:admin") > 0 then
if not targetPlayer or not szam then
outputChatBox("#ff9000[Usage]: #FFFFFF/"..cmd.." [ID / Name] [Dimension]", thePlayer, 0, 0, 0, true)
return end
szam = tonumber(szam)
targetPlayer = findPlayer(thePlayer, targetPlayer)
if not getElementData(targetPlayer, "loggedin") then
outputChatBox("#D64541[Error]: #FFFFFFThe player you are trying to use the command on isn't logged in yet!", thePlayer, 0, 0, 0, true)
return end
setElementDimension(targetPlayer, szam)
outputChatBox("Succesfully set "..getPlayerName(targetPlayer).."'s dimension to "..szam,thePlayer, 0, 0, 0, true)
else
outputChatBox("#D64541[Error]: #FFFFFFAcces denied!", thePlayer,0,0,0,true)
end
end
addCommandHandler("setdim", setdim, false, false)
--Before that, the spawning is used with spawnPlayer, and even this way it is bugged out. I will provide video later on...