Advertisement
Guest User

Untitled

a guest
Aug 30th, 2014
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. --===Event File===---
  2.  
  3. EVENT.Name = "Race"
  4. EVENT.OtherOption = 123
  5.  
  6.  
  7. function EVENT:OnPlayerDeath(ply)
  8. ply:ReturnToMain()
  9. end
  10.  
  11. function EVENT:PlayerShouldTakeDamage()
  12. return false
  13. end
  14.  
  15.  
  16. --===Gamemode File===---
  17.  
  18.  
  19. --Load all the gamemodes like entities but with an EVENT table instead.
  20.  
  21. local _hookCall = hook.Call
  22. function hook.Call(name, ...)
  23. for i=1,#EVENTS do
  24. if type(EVENTS[i][name]) == "function" then
  25. local rtn = {EVENTS[i][name](name,...)}
  26. if rtn and rtn[1] then return rtn end
  27. end
  28. end
  29. return hook.Call(name, ...)
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement