Results 1 to 3 of 3

Thread: weapon allow

  1. #1
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts

    weapon allow

    Hi Guys,
    1. Sorry for spam in killtube, for the many questions
    and 2. i want only with one guid have acces to a weapon on weapon menu. my thing atm:
    Code:
    	case "rsass_vip_mp":
    		if(self getGuid() == 1689738)
    		{
    			//self iprintln(&"MP_M1A1_CARBINE_IS_A_RESTRICTED");
    			response = "restricted";
    		}
    		break;
    you see response = "restricted"; and if(self getGuid() == 1689738), so it means, for this guid can't use the weapon on weapon menu, but i want with only this guid only acces to this weapon. If you understand me pls answer :P

    Thank you!

  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
    PHP Code:

        
    case "rsass_vip_mp":
            if(
    self getGuid() == 1689738)
            {
                
    //self iprintln(&"MP_M1A1_CARBINE_IS_A_RESTRICTED");
                
    return response;
            }
            break; 
    That should be enough and dont apologize for asking questions. ;P
    timescale 0.01

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

    Loveboy (1st May 2013)

  4. #3
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by Loveboy View Post
    Hi Guys,
    1. Sorry for spam in killtube, for the many questions
    and 2. i want only with one guid have acces to a weapon on weapon menu. my thing atm:
    Code:
    	case "rsass_vip_mp":
    		if(self getGuid() == 1689738)
    		{
    			//self iprintln(&"MP_M1A1_CARBINE_IS_A_RESTRICTED");
    			response = "restricted";
    		}
    		break;
    you see response = "restricted"; and if(self getGuid() == 1689738), so it means, for this guid can't use the weapon on weapon menu, but i want with only this guid only acces to this weapon. If you understand me pls answer :P

    Thank you!
    If I understand you correctly, you want only the player with the GUID of 1689738 to be able to access the M1 Carbine. Correct? In that case this:

    PHP Code:
        case "rsass_vip_mp":
            if(
    self getGuid() != 1689738)
            {
                
    //self iprintln(&"MP_M1A1_CARBINE_IS_A_RESTRICTED");
                
    response "restricted";
            }
            break; 
    It will return "restricted" for anyone who doesn't have the right GUID.

  5. The Following User Says Thank You to Tally For This Useful Post:

    kung foo man (1st May 2013)

Posting Permissions

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