Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AGC = AGC or {}
- --[[---------------------------------------------------------------------------
- Advanced Government Computer : Config
- INFO: ACCESS TO COMPUTER
- Commands :
- agc_resetalllogs - explicit
- agc_save - explicit on agc's entities
- agc_remove - same as above
- ---------------------------------------------------------------------------]]
- AGC.Version = "2.2.0"
- -- NPC Model
- AGC.NPC_Model = "models/icpd/cops/male_02_longsleeved.mdl"
- --Cooldown before an other complaint
- AGC.Complaint_Cooldown = 60 * 5 -- 5 minutes
- -- Vehicles models that have access to AGC, don't forget to remove the comma at the last line
- -- Add vehicles models here
- AGC.VehicleAccess = {
- "models/lonewolfie/dodge_charger_2015_police.mdl",
- "models/lonewolfie/chev_impala_09_police.mdl",
- "models/lonewolfie/chev_suburban_pol.mdl",
- "models/lonewolfie/chev_suburban_pol_und.mdl",
- "models/tdmcars/gtav/police.mdl",
- "models/tdmcars/gtav/police3.mdl",
- "models/tdmcars/gtav/riot.mdl",
- "models/tdmcars/hsvw427_pol.mdl",
- "models/tdmcars/emergency/dod_charger12.mdl",
- "models/tdmcars/emergency/for_crownvic.mdl",
- "models/buggy.mdl",
- "models/tdmcars/emergency/mitsu_evox.mdl"
- }
- -- Who can delete a complaint, don't forget to remove the comma at the last line
- AGC.DeleteComplaint = {
- "Civil Protection Chief",
- "Диспетчер 911",
- "Мэр"
- }
- --[[---------------------------------------------------------------------------
- Hacking module : config
- ---------------------------------------------------------------------------]]
- -- Hacking module enabled ?
- AGC.Hack_Enabled = true
- -- Hacker job
- AGC.Hacker_Job = false
- -- Hacker job name
- AGC.Hacker_Jobname = {
- "Hacker",
- "Citizen"
- }
- -- Hacking time
- AGC.Hack_time = 5
- -- Time between 2 fail hack
- AGC.Hack_Cooldown = 1
- --[[---------------------------------------------------------------------------
- DarkRP Commands config
- ---------------------------------------------------------------------------]]
- -- The police will use the computer to wanted/warrant/unwanted.. someone. (No commands)
- -- Set false if you want disabled default warrant/wanted/ect.. and force cops to use computer
- AGC.Default_Warrant = false
- AGC.Default_Wanted = false
- --[[-------------------------------------------------------------------------
- NEW 2.2
- ---------------------------------------------------------------------------]]
- AGC.ComplaintsExpiration = 0
- AGC.MainLanguage = "Russian" -- Edit below >> or set to English or French
- AGC.DeleteLogsOnDisconnect = false
- AGC.DeleteLogsOnDeath = false
- -- insert your driver license check function, here it's compatible with TooBad's script (first license)
- AGC.DriverLicenseEnabled = true
- AGC.DriverLicenseFunction = function(ply) return ply:HasDLicense(2) end
- AGC.DeleteLogs = {
- "Civil Protection Chief",
- "Глава Полиции",
- "Диспетчер 911",
- "Мэр"
- }
- --[[---------------------------------------------------------------------------
- End of config
- ---------------------------------------------------------------------------]]
- function isNearAHackedComputer(ply)
- if not IsValid(ply) or not ply:Alive() or not AGC.Hack_Enabled or (AGC.Hacker_Job and not table.HasValue(AGC.Hacker_Jobname, team.GetName(ply:Team()))) then return false end
- for k,v in pairs(ents.FindInSphere(ply:GetPos(), 64)) do
- if IsValid(v) and v:GetClass() == "apc_computer" and v:GetAGCHacked() then return true end
- end
- return false
- end
- local function loadAGCModules()
- if DarkRP and (not AGC.Default_Warrant or not AGC.Default_Wanted) and SERVER then
- include("autorun/modules/sv_agc_darkrp.lua")
- end
- end
- loadAGCModules()
- hook.Add("DarkRPFinishedLoading", "AGC_Modules", loadAGCModules)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement