Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --by vyctor17/paulgrande--
- local city = {
- [1] = { -- map 1
- storage = 5884,
- red = 1, -- spaw tean 1
- blue = 2, -- spaw tean 2
- },
- [2] = { -- map 2
- storage = 5885,
- red = 3, -- spaw tean 1
- blue = 4, -- spaw tean 2
- },
- [3] = { -- map 3
- storage = 5886,
- red = 5, -- spaw tean 1
- blue = 6, -- spaw tean 2
- }
- }
- function onThink(interval, lastExecution)
- if getPlayerSex(cid, 0) then
- doCreatureAddHealth(creature, getCreatureMaxHealth(creature))
- setGlobalStorageValue(city.storage)
- doPlayerSetTown(cid, city.red{getGlobalStorageValue(city.storage)})
- doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
- elseif getPlayerSex(cid, 1) then
- doCreatureAddHealth(creature, getCreatureMaxHealth(creature))
- setGlobalStorageValue(city.storage)
- doPlayerSetTown(cid, city.blue{getGlobalStorageValue(city.storage)})
- doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement