Thread: [Solved]Help.

Results 1 to 6 of 6
  1. #1
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115

    [Solved]Help.

    EDIT: 500th post. Woohoo.

    Quick thing of what I want it to do:

    Code:
    GunSpecials(model)
    {
    	self endon ( "death" );
    	self endon ( "disconnect" );
          for(;;)
          {
          cur = self getCurrentWeapon();
    
          if ( cur == "m21_acog_mp" )
          self thread monitorSpecial("Crossbow");
          }
    }
    
    monitorSpecial(Special)
    {
    self endon("death");
    
    switch(Special)
    {
    case "Crossbow":
    
    self setWeaponAmmoClip("m21_acog_mp", 1);
    
    break;
    }
    }
    This is obviously very very very rough.
    The M21 you use will always have 1 ammo in the clip.
    Well, 1 ammo>reload>1 ammo repeat..
    If I just get that working I can do the rest myself.

    Halp?

  2. #2
    jimmynguyen3030's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    NukeTown
    Posts
    263
    Reputation
    10
    Thanks
    18
    My Mood
    Bored
    wat do u mean i dont get it
    If I Helped You, Plz Thanks.
    It Would Help Alot

    What Do You Do For A Living?
    I Mostly Own Noobs With The AK-47 With Silencer
    What's That?
    (Turns To Friend)
    HAHAHA Noob!!!!!!

  3. #3
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,307
    My Mood
    Breezy
    Code:
    GunSpecials(model)
    {
    	self endon ( "death" );
    	self endon ( "disconnect" );
    	for(;;)
    	{
    		cur = self getCurrentWeapon();
    
    		if ( cur == "m21_acog_mp" ) {
    			if( self getWeaponAmmoClip("m21_acog_mp") == 0 ) {
    				self waittill_or_timeout("reload", WeaponReloadTime("m21_acog_mp") + 0.5); //Waittill you reload or when the timer runs out
    				if( self getCurrentWeapon() == "m21_acog_mp") //Just in-case something happened
    					self thread monitorSpecial("Crossbow");
    			}
    		}
    	}
    }
    
    monitorSpecial(Special)
    {
    	self endon("death");
    	switch(Special)
    	{
    		case "Crossbow":
    		self setWeaponAmmoClip("m21_acog_mp", 1);
    		break;
    	}
    }
    /marked as solved
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  4. #4
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Code:
    self waittill_or_timeout("reload", WeaponReloadTime("m21_acog_mp") + 0.5); //Waittill you reload or when the timer runs out
    Got it from Black Ops perhaps, or wrote something wrong? - Gives unknown function
    Also, something in the code creates lagg..
    Last edited by Arasonic; 01-14-2011 at 08:39 AM.

  5. #5
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Not solved, really.
    Doesn't work, + it creates lagg.
    And unknown function unless I remove the waittill.

  6. #6
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,307
    My Mood
    Breezy
    Code:
    self waittill("reload"); //This?
    Make sure to put wait 0.01; in the for loop.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]