Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
If you leave the codes like this youll get 2 magic effects on the same place.
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos = {x=123, y=112, z=7}
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_GIFT_WRAPS)
doTeleportThing(cid, pos, TRUE)
doSendMagicEffect(pos, CONST_ME_GIFT_WRAPS)
return TRUE
end
PHP:
function onEquip(cid, item, slot)
local pos = {x=123, y=112, z=7}
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_GIFT_WRAPS)
doTeleportThing(cid, pos, TRUE)
doSendMagicEffect(pos, CONST_ME_GIFT_WRAPS)
return TRUE
end
The computer is dumb, it doesnt think logically enough to understand that you want to send the effect, teleport and effect again. It reads line by line.
If you leave the codes like this youll get 2 magic effects on the same place.
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos = {x=123, y=112, z=7}
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_GIFT_WRAPS)
doTeleportThing(cid, pos, TRUE)
doSendMagicEffect(pos, CONST_ME_GIFT_WRAPS)
return TRUE
end
PHP:
function onEquip(cid, item, slot)
local pos = {x=123, y=112, z=7}
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_GIFT_WRAPS)
doTeleportThing(cid, pos, TRUE)
doSendMagicEffect(pos, CONST_ME_GIFT_WRAPS)
return TRUE
end
The computer is dumb, it doesnt think logically enough to understand that you want to send the effect, teleport and effect again. It reads line by line.