On my Darkrp server I have custom cop jobs such as undercover cop and SWAT. I was wondering if there is a way for me to make it so they can use the commands /wanted and /warrant on people.
Thanks.
In gamemode/server/player.lua go to line 57
[lua]function meta:IsCP()
if not IsValid(self) then return false end
local Team = self:Team()
return Team == TEAM_POLICE or Team == TEAM_CHIEF or Team == TEAM_MAYOR or Team == TEAM_SWAT --- Add teams here like so
end[/lua]
[QUOTE=GUNH0G;39026038]In gamemode/server/player.lua go to line 57
[lua]function meta:IsCP()
if not IsValid(self) then return false end
local Team = self:Team()
return Team == TEAM_POLICE or Team == TEAM_CHIEF or Team == TEAM_MAYOR or Team == TEAM_SWAT --- Add teams here like so
end[/lua][/QUOTE]
Works perfectly!
Thank you very much!
Sorry, you need to Log In to post a reply to this thread.