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


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

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

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 “”;

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