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

[TFS 1.3][Revscript]I search a script of lever that teleport to 2 teams, change colors of your outfit

Eduardo170

Well-Known Member
Joined
Jan 7, 2014
Messages
422
Solutions
3
Reaction score
66
Location
Caracas, Venezuela
example
*Team Red
*Team Black
Code:
 TeamBlack = {
        Position(1018, 954, 7),
        Position(1018, 957, 7),
        Position(930, 1001, 7),
        Position(930, 1002, 7)
    },
    TeamRed = {
        Position(1018, 957, 7),
        Position(1018, 958, 7),
        Position(930, 1001, 7),
        Position(930, 1002, 7)
    }
Use a lever and teleport to teams and change colors, if area have players, send a message(there have players inside)
 
Last edited:
Code:
local arenaConfig = {
    players = { -- posições que os players devem ficar ao puxar a alavanca
    teamBlack = {
                Position(33395,32661,6),
                Position(33395,32661,6),
                Position(33395,32661,6),
                Position(33395,32661,6)
                },
    teamRed = {
                Position(33395,32661,6),
                Position(33395,32661,6),
                Position(33395,32661,6),
                Position(33395,32661,6)
              },
    },
    arena = {
        from = Position(921, 998, 7),
        to = Position(928, 1005, 7),
        },
    },
            
            
local lever = Action()
function lever.onUse(player, item, fromPosition, target, toPosition, isHotkey)
    local poscreature = player:getPosition()
       local outfit = creature:getOutfit()
    if isInRange(poscreature, arenaConfig.arena.from, arenaConfig.arena.to) then
        if isPlayer then
        end
    end
 
lever:aid(28757)
lever:register()
How I get Team Black, and then set a color in they outfit.
 
Back
Top