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

Need help on globalevents

Slaying World

Member
Joined
Apr 9, 2009
Messages
212
Reaction score
9
Location
Texas
Well i want my script to work, when u enter a tp the storage on a player is changed depending on teleport it enters for rook war.
As soon as they enter their outfit changes and color changes depending on tp, but i dont want them to be able to change it unless they die.

this is the globalevents i have but it sends error.
Code:
function onThink(interval, lastExecution)
local player = Player(cid)
if player.getStorageValue(lmsConfigTable.GREENTEAMSTORAGE) == 2 then
player:setOutfit({lookType = 516, lookHead = 300, lookBody = 300, lookLegs = 300, lookFeet = 300, lookTypeEx = 0, lookAddons = 3})
end
if player.getStorageValue(lmsConfigTable.REDTEAMSTORAGE) == 2 then
player:setOutfit({lookType = 516, lookHead = 900, lookBody = 900, lookLegs = 900, lookFeet = 900, lookTypeEx = 0, lookAddons = 3})
end
    return true
end
 
Back
Top