Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. function HITMAN_BOARD:OnPlayerDisconnected(ply)
  2. if self.ActiveHits[ply:EntIndex()] then
  3. if not IsValid(self.ActiveHits[ply:EntIndex()].requester) then
  4. self.ActiveHits[ply:EntIndex()] = nil
  5. net.Start("HitReimburse")
  6. net.WriteInt(ply:EntIndex(), 32)
  7. net.WriteInt(-1, 32)
  8. net.Broadcast()
  9. return
  10. end
  11. -- Refund requester
  12. net.Start("HitReimburse")
  13. net.WriteInt(ply:EntIndex(), 32)
  14. net.WriteInt(self.ActiveHits[ply:EntIndex()].requester:EntIndex(), 32)
  15. net.Broadcast()
  16. self.ActiveHits[ply:EntIndex()].requester:addMoney(self.ActiveHits[ply:EntIndex()].reward)
  17. self.ActiveHits[ply:EntIndex()] = nil
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement