Page 4 of 4 FirstFirst ... 234
Results 31 to 35 of 35

Thread: Ranks per kills ...

  1. #31
    Private First Class
    Join Date
    Jul 2013
    Posts
    170
    Thanks
    44
    Thanked 16 Times in 11 Posts
    it dont have error,but i cant take weapon at rank 1.

  2. #32
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    thats kinda the point when you have if(rank < 10) return restricted;

  3. #33
    Private First Class
    Join Date
    Jul 2013
    Posts
    170
    Thanks
    44
    Thanked 16 Times in 11 Posts
    // American
    case "m4_mp":
    if(!getcvarint("scr_allow_m1carbine") || rank < 10)
    {
    //self iprintln(&"MP_M1A1_CARBINE_IS_A_RESTRICTED");
    response = "restricted";
    }
    break;

    That?

  4. #34
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by Rocky View Post
    it dont have error,but i cant take weapon at rank 1.
    The game will restrict when a dvar is not satisfied, or a player has a rank of less than 10. It sounds like you want it the other way - you want rank 1 players to have access to the weapon. So, the answer is simple: DON'T RESTRICT THEM AT RANK 1!, which is what you are doing.

    You need to learn to grasp LOGIC! What you are doing is not logical.
    Last edited by Tally; 1st December 2013 at 12:49.

  5. #35
    Private First Class
    Join Date
    Jul 2013
    Posts
    170
    Thanks
    44
    Thanked 16 Times in 11 Posts
    working.


    Code:
    	case "m1carbine_mp":
    		if(self.stats["rank"] < 1)
    		{
    			//self iprintln(&"MP_M1A1_CARBINE_IS_A_RESTRICTED");
    			response = "restricted";
    		}
    Last edited by Rocky; 1st December 2013 at 13:05.

Posting Permissions

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