Go to wherever you choose a class and do:
[lua]for _, v in pairs(player.GetAll()) do
if v:IsAdmin() then
<code to show/allow the admin + regular classes here>
<code to show the regular classes>
end[/lua]It’s a bit difficult to help you without a code. Can you post here the code where the players choose the class?
team.SetUp(1337, “Admins”, Color(0,0,255,255))
function GM:PlayerInitialSpawn( ply )
if ply:SteamID() == (“admin’s steam ID”) then
ply:StripWeapons() if ply:Team() == 1337 then do --Give weapons, etc end
Permissions, who can become this class?
Easy as that.
TEAM_ADMIN = 1337
team.SetUp(TEAM_ADMIN, “Admin”, Color(0,0,255,255))
if pl:IsAdmin() then
hook.Add(“PlayerInitialSpawn”, “example1”, Example1)
if pl:Team() == TEAM_ADMIN then
pl:Give(“weapon_deagle”) //Change to whatever you want.
hook.Add(“PlayerLoudout”, “example2”, Example2)
God, have you guys ever heard that DarkRP has a easy job making system?
Listen to Zeroi
thx for the help :)…
and the link for Class Maker