restriction group



function zonconcmd(ply, cmd)
	if (ply:IsSuperAdmin()) then
		concommand.Add("zones", zonesconcmd)
	end
end

This code does not work, that I do not so?
help me plesae

What are you doing there :v
Read how to use concommand.Add

[lua]

function killing( ply, cmd, args )
if(ply:IsAdmin()) then
ply:Kill()
print( “You killed yourself!” )
end
end
concommand.Add( “killyourself”,killing )
[/lua]

I’m trying to make this team can only use SuperAdmin

thanks for help



concommand.Add('kys', function(ply) 
    if ply:IsAdmin() then
        -- Do your stuff
    end
end)


I wrote this without a text editor so pls dont mind the formatting. Alternative you can add the ‘ply’ argument to your own function.

That doesn’t make much sense. Do you mean that you want to make so that only superadmins can use that command?