gohamvsgoku
Member
- Joined
- Aug 21, 2017
- Messages
- 151
- Reaction score
- 9
My map have 3 towns
Town id (Inferno) = id 1
Town id (Isle) =id 2
Town ( Jungle ) =id 3
In case (elseif) of this script, how to do this only work if the player have town 1 or 2 in database?
Town id (Inferno) = id 1
Town id (Isle) =id 2
Town ( Jungle ) =id 3
LUA:
if player:isPremium() then
player:setStorageValue(1000, 1)
elseif player:getStorageValue(1000) == 1 then
player:setStorageValue(1000, 0)
player:teleportTo({x = 201, y = 241, z = 7})
player:setTown(Town("Jungle"))
end
In case (elseif) of this script, how to do this only work if the player have town 1 or 2 in database?