• DarkRP Respected jobs help
    5 replies, posted
i am using DarkRP 2.4.1, and ii have the jobs on my server but i need some of them to be respected only... EX) hitman or SWAT is for respected users only... can someone help me do this? -thank you-
Which admin mod are you using? ASSMod I assume?
If you are using ulx use this: place at the top of shared: [lua] vipteams = {TEAM_SWAT} if table.HasValue( vipteams, t ) and !force and !self:IsUserGroup("respected") and !self:IsSuperAdmin() then Notify(self, 1, 4, string.format("That class is Respected only!")) return end[/lua] place this in player.lua in Team/Jobs: ( Starts at line 202 ) [lua] vipteams = {TEAM_SWAT} if table.HasValue( vipteams, t ) and !force and !self:IsUserGroup("respected") and !self:IsSuperAdmin() then Notify(self, 1, 4, string.format("That class is Respected only!")) return end[/lua] and that sould work. just change "TEAM_SWAT" to the name of the team u want Respected.
well i am using assmod but i might switch to evolve
[QUOTE=slaza;29161189]well i am using assmod but i might switch to evolve[/QUOTE] I would recommend to switch to ULX Admin mod. its much better. assmod is more of a sandbox admin mod. evolve's not as good as ULX but is ok.
[QUOTE=leet frog;29161096]If you are using ulx use this: place at the top of shared: [lua] vipteams = {TEAM_SWAT} if table.HasValue( vipteams, t ) and !force and !self:IsUserGroup("respected") and !self:IsSuperAdmin() then Notify(self, 1, 4, string.format("That class is Respected only!")) return end[/lua] place this in player.lua in Team/Jobs: ( Starts at line 202 ) [lua] vipteams = {TEAM_SWAT} if table.HasValue( vipteams, t ) and !force and !self:IsUserGroup("respected") and !self:IsSuperAdmin() then Notify(self, 1, 4, string.format("That class is Respected only!")) return end[/lua] and that sould work. just change "TEAM_SWAT" to the name of the team u want Respected.[/QUOTE] Nice but can you fx: vipteams = {TEAM_SWAT, TEAM_TEST, TEAM_LOL} if table.HasValue( vipteams, t ) and !force and !self:IsUserGroup("respected") and !self:IsSuperAdmin() then Notify(self, 1, 4, string.format("That class is Respected only!")) return end can you do what?
Sorry, you need to Log In to post a reply to this thread.