Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function HITMAN_BOARD:OnPlayerDisconnected(ply)
- if self.ActiveHits[ply:EntIndex()] then
- if not IsValid(self.ActiveHits[ply:EntIndex()].requester) then
- self.ActiveHits[ply:EntIndex()] = nil
- net.Start("HitReimburse")
- net.WriteInt(ply:EntIndex(), 32)
- net.WriteInt(-1, 32)
- net.Broadcast()
- return
- end
- -- Refund requester
- net.Start("HitReimburse")
- net.WriteInt(ply:EntIndex(), 32)
- net.WriteInt(self.ActiveHits[ply:EntIndex()].requester:EntIndex(), 32)
- net.Broadcast()
- self.ActiveHits[ply:EntIndex()].requester:addMoney(self.ActiveHits[ply:EntIndex()].reward)
- self.ActiveHits[ply:EntIndex()] = nil
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement