PDA

View Full Version : Hey :) It is possible to set the command "r_" for the players by the script?



Moczulak
21st August 2012, 14:01
Just as in the topic :)

Please help me.
I regards ,Moczulak.

kung foo man
21st August 2012, 14:04
Hey Moczulak!


There are two ways to set cvars.

setcvar() is for the SERVER
setclientcvar() is for the PLAYER

so if you want to set r_gamma for a player, just call:


player setclientcvar("r_gamma", "2");

Happy Modding!

Moczulak
21st August 2012, 14:21
Very thank's man! :)