Need help with server convars

Hi all ! i’m new here and i need help on a simple problem that i can’t solve since yesterday (i’m new in addon scripting)

I want to have server side convars but editeable by client if he is superadmin

i think it’s obvious but i can’t find …

Thank’s all !

(sorry for my bad english)

You could create a command for super-admins that will set the convar in question. Something along the format of !setconvar sv_whatever 5. Here’s what you’ll need:

hook.Add

GM:PlayerSay

string.Explode or

string.find with

string.sub

Player:IsSuperAdmin

RunConsoleCommand

It look’s like working perfect ! thank you so much !