Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function HLRP.Job(name, team)
- print(name, team)
- team.vip = team.vip or false
- team.cost = team.cost or 0
- team.time = team.time or 0
- team.max = team.max or 0
- team.admin = team.admin or 0
- team.vote = team.vote or false
- team.hasLicense = team.hasLicense or false
- team.customCheck = function(ply)
- if team.time > 0 and ply:GetTime() < team.time then
- HLRP.Notify(ply, 1, 4, "Недостаточно времени")
- return
- end
- if team.vip and not ply:IsVip() then
- HLRP.Notify(ply, 1, 4, "Необходима VIP-привилегия")
- return
- end
- if ply:HasJob(name) or team.cost == 0 then return true end
- if ply:BuyJob(name) then
- return true
- end
- HLRP.Notify(ply, 1, 4, "Недостаточно средств для покупки")
- return false
- end
- DarkRP.createJob(name, team)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement