That sets serverconvar... I use GetConVarNumber("stuff") serverside and test = CreateClientConVar("stuff","50",false,false) clientside
I'm trying to make every player has a different "stuff" convar.
[QUOTE=Cyberuben;21968723]NIce name. And a nice movie.[/QUOTE]
That's not a movie that's a game.
Deep Throat = a movie...
so there is no way to set a client convar via slider?
[QUOTE=Deep Throat;21981287]so there is no way to set a client convar via slider?[/QUOTE]
OnValueChanged and RunConsoleCommand it. Or do what I told you to do earlier.
[QUOTE=|FlapJack|;21989018]OnValueChanged and RunConsoleCommand it. Or do what I told you to do earlier.[/QUOTE]
What do you mean by onvaluechanged?
GOD DAMN IT it just sets a CLIENT convar, not a server one! I NEED THE CLIENT ONE!!
Jesus you're thick. What I posted could set the client one.
God damn it, I tried it and it doesnt set a client convar!!
[lua]function herpderp(pl , cmd , args)
if pl:IsSuperAdmin() then
RunConsoleCommand(args[1] , args[2])
end
end
concommand.Add("setvar" , herpderp)[/lua]
Simple.
[editline]11:59PM[/editline]
RunConsoleCommand "setvar" on the client in the slider, with the convar you want to set as the first parameter, with the second being the value.
my bad wanted to say client convar .-.
I want to do like players can set a convar that's just for themselves but from the server, like if I set my convar via console but it only changes the player that types that command's convar
[QUOTE=Cyberuben;21979329]Deep Throat = a movie...[/QUOTE]
deep throat = blowjob
[QUOTE=Deep Throat;22019973]my bad wanted to say client convar .-.
I want to do like players can set a convar that's just for themselves but from the server, like if I set my convar via console but it only changes the player that types that command's convar[/QUOTE]
[lua]CreateConVar("convar" , "default value" , true , true)
DNumSlider.OnValueChanged = function(self , val)
RunConsoleCommand("convar" , val)
end
[/lua]
Something like that.
[editline]10:07PM[/editline]
[QUOTE=heavy artillery;22021975]deep throat = blowjob[/QUOTE]
Sorry, you need to Log In to post a reply to this thread.