Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.95 KB | None | 0 0
  1. --by vyctor17/paulgrande--
  2. local city = {
  3. [1] = {   -- map 1
  4.     storage = 5884,
  5.     red = 1,  -- spaw tean 1
  6.     blue = 2, -- spaw tean 2
  7. },
  8. [2] = { -- map 2  
  9.     storage = 5885,
  10.     red = 3, -- spaw tean 1
  11.     blue = 4, -- spaw tean 2
  12. },
  13. [3] = { -- map 3    
  14.     storage = 5886,
  15.     red = 5, -- spaw tean 1
  16.     blue = 6, -- spaw tean 2
  17. }
  18. }
  19. function onThink(interval, lastExecution)  
  20.   if getPlayerSex(cid, 0) then
  21.   doCreatureAddHealth(creature, getCreatureMaxHealth(creature))
  22.   setGlobalStorageValue(city.storage)
  23.   doPlayerSetTown(cid, city.red{getGlobalStorageValue(city.storage)})
  24.   doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
  25.  
  26.   elseif getPlayerSex(cid, 1) then
  27.   doCreatureAddHealth(creature, getCreatureMaxHealth(creature))
  28.   setGlobalStorageValue(city.storage)
  29.   doPlayerSetTown(cid, city.blue{getGlobalStorageValue(city.storage)})
  30.   doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))  
  31.         return true
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement