DarkRP Non-demotable VIPS

Hi! Wondering if some one would like to make a system that makes a specific user group non-demotable, like Vip for example?

Just looked at the code for DarkRP - Open up gamemode/server/main.lua

Find:

[lua]if p == ply then
GAMEMODE:Notify(ply, 1, 4, “Can’t demote yourself.”)
return “”
end
[/lua]

Then below it add:
[lua]
if p == ply:GetNWString(“usergroup”) == “donator” then
GAMEMODE:Notify(ply, 1, 4, “Sorry, you cannot demote a VIP.”)
return “”
end
[/lua]

Dident work

Wtf @ p == ply:GetNWString(“usergroup”) == “donator”

[lua]if ( p:GetNWString( “usergroup” ) == “donator” ) then
GAMEMODE:Notify( ply, 1, 4, “You cannot demote a VIP.” );
return “”;
end[/lua]

We don’t even know if you have a usergroup mod that sets a network variable called ‘usergroup’ so yeah. :smiley: