Results 1 to 3 of 3
  1. #1
    RAZUBA's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    u would want to knwo wouldn't u
    Posts
    14
    Reputation
    10
    Thanks
    0

    Exclamation How to toggle between selfhide and selfshow code

    Code:
    hideandshow()
    {
    	{
    		self notifyOnPlayerCommand("HHH", "+actionslot 1");
    		self iPrintLn("Press ^2H ^7 to toggle Hide&Show");
            for(;;)
    	{
        self waittill( "HHH" );
    	self hide();
    	self waittill( "HHH" );
    	self show();
    	self waittill( "HHH" );
    	self hide();
    	self waittill( "HHH" );
    	self show();
    	}}
    	else
    	{}
    }
    Can i just be told if that above code will work. I want it so a person can toggle between going invisible and coming back by pressing H to toggle it.

    If any coders looking mind fixing it if its wrong and tell em wat i did wrong

    PS:i made this in 2 secs so donno if correct so plz reply ASAP
    EDIT:i get syntax error and yes i added the thing to playerspawn
    Last edited by RAZUBA; 07-29-2011 at 02:59 AM.

  2. #2
    lieuwex's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    2
    My Mood
    Angry
    Code:
    hideandshow()
    {
    	self notifyOnPlayerCommand("HHH", "+actionslot 1");
    	self iPrintLn("Press ^2H ^7 to toggle Hide&Show");
    
            while(1){
        self waittill( "HHH" );
    	self hide();
    	self waittill( "HHH" );
    	self show();
    	self waittill( "HHH" );
    	self hide();
    	self waittill( "HHH" );
    	self show();
            wait .15;
    	}
    }
    something like that i think

  3. #3
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    You will need to bing H.
    With this, by pressing N(if you havent changed any setup), will work.

    Code:
    hideandshow()
    {
    	self notifyOnPlayerCommand("HHH", "+actionslot 1");
    	self iPrintLn("Press ^2H ^7 to toggle Hide&Show");
    	for(;;)
    	{
    		self waittill( "HHH" );
    		self hide();
    		self waittill( "HHH" );
    		self show();
    	}
    }

Similar Threads

  1. [Solved] how to use an injector and source code
    By Apple. in forum CrossFire Help
    Replies: 6
    Last Post: 04-17-2011, 07:16 PM
  2. [SOLVED]how to used the injector and Source Code ?????
    By adu.12 in forum Alliance of Valiant Arms (AVA) Help
    Replies: 15
    Last Post: 08-26-2010, 08:17 AM
  3. Superjump and Superman Codes??Somebody help me with these codes??
    By jokuvaan11 in forum WarRock - International Hacks
    Replies: 3
    Last Post: 06-10-2007, 03:37 PM
  4. war rock hacks: how u get them up and running?
    By loopdedoo1 in forum WarRock - International Hacks
    Replies: 6
    Last Post: 05-22-2007, 05:05 PM
  5. differen between Europe and USA
    By 1h1a1i in forum General
    Replies: 25
    Last Post: 07-06-2006, 01:59 AM