Slaying World
Member
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.
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