• 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!

Arena pvp pod tfs 0.3 - ktoś posiada?

legolas23

New Member
Joined
Jan 8, 2009
Messages
537
Reaction score
3
Tak jak w temacie ;p

Ja mam taki ,ale nie działa

Code:
--Made by 6277310 (PvP-Arena Lever)
local lever_aid = XXXX --Change for action id for the lever
local lever_id = XXXX --Change to the levers id
local tile1_pos = getThingFromPos(X, Y, Z) --Change to coord of first tile wich you will stand on
local tile2_pos = getThingFromPos(X, Y, Z) --Change to coord of second tile wich you will stand on
local tile1_spos = {X = x, Y = y, Z = z} --Change to where player 1 will appear in the pvp-arena
local tile2_spos = {X = x, Y = y, Z = z} --Change to where player 2 will appear in the pvp-arena
function onUse(cid, item, from pos, item2, topos)
if item.itemid == lever_id or item.lever_id + 1 and item.actionid == lever_aid then
doTransformItem(lever_id, + 1) or doTransformItem(getItemName(lever_id +1), -1))
if getThingFromPos(tile1_pos, tile2_pos) == isPlayer(cid) then
doTeleportThing(tile1_pos, tile1_spos)
doTeleportThing(tile2_pos, tile2_spos)
end
end
end
 
Back
Top