Results 1 to 10 of 13

Thread: Problem with "if(getCvar" function

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Private First Class YuriJurek's Avatar
    Join Date
    Jun 2013
    Posts
    219
    Thanks
    152
    Thanked 88 Times in 47 Posts
    As well you could try setting a new variable instead of cvar like
    PHP Code:
    fun_bashtime 1;

    // and then

        
    if(fun_bashtime == 1)
        { 
            
    self setWeaponSlotAmmo("primaryb"0);
            
    self setWeaponSlotClipAmmo("primaryb"0);
        }
        else
        {
            
    self giveMaxAmmo(self.pers["weapon"]);
        } 
    Anyway for my own info, is there any advantage of setting a cvar over variables?
    Last edited by YuriJurek; 28th December 2013 at 02:16.

Posting Permissions

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