• Need help with server convars
    2 replies, posted
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: [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/hook/Add]hook.Add[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/PlayerSay]GM:PlayerSay[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/string/Explode]string.Explode[/url] or [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/string/find]string.find[/url] with [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/string/sub]string.sub[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Player/IsSuperAdmin]Player:IsSuperAdmin[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Global/RunConsoleCommand]RunConsoleCommand[/url]
It look's like working perfect ! thank you so much !
Sorry, you need to Log In to post a reply to this thread.