I tryed
Server Side:
function SchoolShow( ply )
ply:ConCommand( “SchoolMe” )
end
hook.Add(“ShowTeam”, “School”, SchoolShow)
function Givesniper( ply )
give( “Barret .50 cal”)
end
concommand.Add(“sniper_class”)
then Client side:
function SchoolShow( ply )
local classes = vgui.Create( “DFrame” )
classes:SetPos( 50,50 )
classes:SetSize( 100, 200 )
classes:SetTitle( “Pick Your Class” )
classes:SetVisible( true )
classes:SetDraggable( false )
classes:ShowCloseButton( true )
classes:MakePopup()
local DermaButton = vgui.Create( “DButton” )
sniper:SetParent( “classes” )
sniper:SetText( “Sniper” )
sniper:SetPos( 50, 10 )
sniper:SetSize( 80, 10 )
sniper.DoClick = function ()
RunConsoleCommand( “sniper_class” )
end
But it just ruins the gamemode? give me alittle help here? please.