Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. function startSurvival()
  2. if not executesSurv then
  3. timeToSurvive = setTimer(outputChatBox, 20000,1, "Has sobrevivido 20 segundos sin morir",255,255,255,false)
  4. executesSurv = true
  5. outputChatBox( "Hola",255,255,255,false)
  6. setElementData(localPlayer, "logros", getElementData(localPlayer, "logros") + 1,false)
  7. end
  8. end
  9. end
  10. addEvent("onTimerSurvival",true)
  11. addEventHandler("onTimerSurvival", root, startSurvival)
  12.  
  13. function onWastedKillSurviveTimer()
  14. if (isTimer(timeToSurvive)) then killTimer(timeToSurvive) end
  15. timeToSurvive = setTimer(outputChatBox, 5000,1, "Has sobrevivido 5 segundos sin morir",255,255,255,false)
  16. executesSurv = false
  17. end
  18. addEventHandler("onClientPlayerWasted",getLocalPlayer(), onWastedKillSurviveTimer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement