Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //AUTORETRY Denc(c)
- local tag = 'autoretry'
- if SERVER then
- util.AddNetworkString(tag..'_pong')
- net.Receive(tag..'_pong',function(ln,pl)
- net.Start(tag..'_pong')
- net.Broadcast()
- end)
- end
- if CLIENT then
- hook.Add(tag..'_pong',function()
- print('CRASHED')
- end)
- net.Start(tag..'_pong')
- net.SendToServer()
- timer.Create(tag..'_pong',5,1,function() hook.Call(tag..'_pong') end)
- net.Receive(tag..'_pong',function()
- timer.Destroy(tag..'_pong')
- net.Start(tag..'_pong')
- net.SendToServer()
- timer.Create(tag..'_pong',5,1,function() hook.Call(tag..'_pong') end)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement