Results 1 to 3 of 3

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

  1. #1
    Private
    Join Date
    Aug 2012
    Posts
    78
    Thanks
    20
    Thanked 10 Times in 5 Posts

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

    Just as in the topic

    Please help me.
    I regards ,Moczulak.

  2. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    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:

    Code:
    player setclientcvar("r_gamma", "2");
    Happy Modding!

  3. The Following User Says Thank You to kung foo man For This Useful Post:

    Moczulak (24th August 2012)

  4. #3
    Private
    Join Date
    Aug 2012
    Posts
    78
    Thanks
    20
    Thanked 10 Times in 5 Posts
    Very thank's man!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •