Results 1 to 3 of 3
  1. #1
    jeroentaets's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0

    help for hide system

    hey, im currently changing the tf2 mode, so i want to make a class where you can only use throwing knive (unlimited) en when you crouch you hide but when you go prone or stand normal you show up again
    im not finished with this yet so i first wanted to make the hide thing.
    but the code wont work if i crouch i wont hide



    Code:
    dowtf()
    {
    	self endon ( "death" );
    	self show();
            self freezeControls(false);
            self VisionSetNakedForPlayer( "default", .1 );
            
    
            
    	self setClientDvar( "g_maxDroppedWeapons", "2");
    	setDvar( "player_sprintCameraBob", "0.3");
    		self.maxhealth = 100;
        		self.health = self.maxhealth;
    
            self notify ( "exitMenu" );
    	self takeAllWeapons();
    
            wait .05;
    
    	
    			self giveWeapon( "fal_eotech_mp", 0, false );
    			self setWeaponAmmoClip("fal_eotech_mp", "100" );
    			self setWeaponAmmoStock("fal_eotech_mp", "100" );
    			self giveWeapon( "m16_eotech_shotgun_mp", 0, false );
    			self setWeaponAmmoClip("m16_eotech_shotgun_mp", "100" );
    			self setWeaponAmmoStock("m16_eotech_shotgun_mp", "100" );
    			self switchToWeapon("fal_eotech_mp");
            self.moveSpeedScaler = 0.95;
    	wait 0.05;
    	self _clearPerks();
    	self maps\mp\perks\_perks::givePerk("specialty_fastsnipe");
    	self maps\mp\perks\_perks::givePerk("specialty_fastreload");
    	self maps\mp\perks\_perks::givePerk("specialty_bulletpenetration");
    	self maps\mp\perks\_perks::givePerk("specialty_bulletaccuracy");
    	self maps\mp\perks\_perks::givePerk("specialty_extendedmags");
    	self maps\mp\perks\_perks::givePerk("specialty_extraammo");
    	self maps\mp\perks\_perks::givePerk("specialty_scavenger");
    	self maps\mp\perks\_perks::givePerk("specialty_quieter");
    	self maps\mp\perks\_perks::givePerk("specialty_spygame");
    	self maps\mp\perks\_perks::givePerk("specialty_longersprint");
    	self maps\mp\perks\_perks::givePerk("specialty_gpsjammer");
    	self maps\mp\perks\_perks::givePerk("specialty_parabolic");
    	self maps\mp\perks\_perks::givePerk("specialty_automantle");
    	self maps\mp\perks\_perks::givePerk("specialty_coldblooded");
    		i = 1;
    		while(i == 1) {
    		self playsound( "freefall_death" );
    		wait 2;
    		i = 0;
    		}
            if ( self GetStance() == "crouch" ) 
            {        
            self hide();
     
            
              
            }
            if ( self GetStance() == "Prone" ) 
            {        
            self show();
         
            
    
              
            }
            if ( self GetStance() == "stand" ) 
            {        
            self show();
            
             
              
            }
    
    }
    Last edited by jeroentaets; 10-13-2010 at 09:34 AM.

  2. #2
    ๓ฬ2ђคςкєг's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    ( . Y . )
    Posts
    236
    Reputation
    5
    Thanks
    53
    My Mood
    Aggressive
    Can you atleast use on you're code?

  3. #3
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    yeah post ur code so we can see what u did wrong

Similar Threads

  1. [Help Request] Need help for a plugin!
    By vivamoi in forum Minecraft Help
    Replies: 5
    Last Post: 10-26-2011, 10:55 PM
  2. [Help Request] Please I really need help for my MW2 iSnipe mod
    By Coder91 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 17
    Last Post: 09-08-2011, 08:10 AM
  3. [Help Request] help for my server!(again)
    By okaccll in forum Minecraft Help
    Replies: 1
    Last Post: 08-19-2011, 06:56 PM
  4. [Help Request] Hello. Need help for TS3.
    By iPrima in forum CrossFire Help
    Replies: 17
    Last Post: 08-02-2011, 05:07 PM
  5. Could i get some help for Login System
    By Sydney in forum Visual Basic Programming
    Replies: 26
    Last Post: 06-28-2010, 10:21 PM