• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Don't know how to explain .. Check inside please.

bepokemon

Member
Joined
May 16, 2011
Messages
28
Reaction score
6
Hello guys, I don't really know how to explain this without showing the code.
Here is the thing, I want to teleport everyone in a certain area to two different positions, according to something.
(It can be: LookFeet color, Storage Value, anything)
Here is the piece of code:
Code:
upper5 = {x = 1071, y = 993, z = 5}
up5 = getSpectators(upper5,4,2)

	if up5 then
         for i = 1,#up5 do
             doTeleportThing(up5[i],{x = getPlayerStorageValue(up5[i], "campos1"), y = getPlayerStorageValue(up5[i], "campos2"), z = 5})
	end
        end

I want something like:

Code:
if getPlayerStorageValue(up5[i], X) == Y then
newpos = newposX
else
newpos = newposY
end

I don't know if its possible, anyway .. hope someone know how to fix it. <3 Thanks =)
 
Back
Top