Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --===Event File===---
- EVENT.Name = "Race"
- EVENT.OtherOption = 123
- function EVENT:OnPlayerDeath(ply)
- ply:ReturnToMain()
- end
- function EVENT:PlayerShouldTakeDamage()
- return false
- end
- --===Gamemode File===---
- --Load all the gamemodes like entities but with an EVENT table instead.
- local _hookCall = hook.Call
- function hook.Call(name, ...)
- for i=1,#EVENTS do
- if type(EVENTS[i][name]) == "function" then
- local rtn = {EVENTS[i][name](name,...)}
- if rtn and rtn[1] then return rtn end
- end
- end
- return hook.Call(name, ...)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement