Thread: threadname?

Results 1 to 7 of 7
  1. #1
    NinjaN's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    9
    Reputation
    10
    Thanks
    0
    My Mood
    Aggressive

    threadname?

    Hi I got here and I don't know what I'm supposed to replace the "threadname" with. Any Ideas? (This is for Unlimited Ammo)

    threadname()
    {
    self endon ( "disconnect" );
    self endon ( "death" );

    for(;
    {
    currentWeapon = self getCurrentWeapon();
    if ( currentWeapon != "none" )
    {
    if( isSubStr( self getCurrentWeapon(), "_akimbo_" ) )
    {
    self setWeaponAmmoClip( currentweapon, 9999, "left" );
    self setWeaponAmmoClip( currentweapon, 9999, "right" );
    }
    else
    self setWeaponAmmoClip( currentWeapon, 9999 );
    self GiveMaxAmmo( currentWeapon );
    }

    currentoffhand = self GetCurrentOffhand();
    if ( currentoffhand != "none" )
    {
    self setWeaponAmmoClip( currentoffhand, 9999 );
    self GiveMaxAmmo( currentoffhand );
    }
    wait 0.01;
    }
    }

  2. #2
    OwnageMoreDE's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Australia
    Posts
    102
    Reputation
    10
    Thanks
    3
    dude he asked a legit question why do u have to be an asshole and post that.

  3. The Following User Says Thank You to OwnageMoreDE For This Useful Post:

    Skyline. (07-12-2010)

  4. #3
    Skyline.'s Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    10,160
    Reputation
    416
    Thanks
    1,614
    Quote Originally Posted by NinjaN View Post
    Hi I got here and I don't know what I'm supposed to replace the "threadname" with. Any Ideas? (This is for Unlimited Ammo)

    threadname()
    {
    self endon ( "disconnect" );
    self endon ( "death" );

    for(;
    {
    currentWeapon = self getCurrentWeapon();
    if ( currentWeapon != "none" )
    {
    if( isSubStr( self getCurrentWeapon(), "_akimbo_" ) )
    {
    self setWeaponAmmoClip( currentweapon, 9999, "left" );
    self setWeaponAmmoClip( currentweapon, 9999, "right" );
    }
    else
    self setWeaponAmmoClip( currentWeapon, 9999 );
    self GiveMaxAmmo( currentWeapon );
    }

    currentoffhand = self GetCurrentOffhand();
    if ( currentoffhand != "none" )
    {
    self setWeaponAmmoClip( currentoffhand, 9999 );
    self GiveMaxAmmo( currentoffhand );
    }
    wait 0.01;
    }
    }
    hey mate just heads up wrong section & when you post code to make it look nice put the code tags , hope someone helps you in the mean time.


  5. #4
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,669
    My Mood
    Breezy
    Can't figure it out without seeing the whole GSC. btw, wrong forum.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    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]

  6. #5
    B4M's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Real World
    Posts
    6,940
    Reputation
    478
    Thanks
    1,752
    My Mood
    Bored
    /moved to help

    @SkyAssasin /post deleted
    [center]

    Back in '10



    Got a question?PM/VM me!
    I read them all.
    Also contact me via MSN.
    vlad@mpgh.net

    Minion since:07-04-2010
    Mod since:08-31-2010
    Till : 05.07.2011

  7. #6
    PP_CrazyApple's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    851
    Reputation
    28
    Thanks
    416
    My Mood
    Innocent
    Quote Originally Posted by NinjaN View Post
    Hi I got here and I don't know what I'm supposed to replace the "threadname" with. Any Ideas? (This is for Unlimited Ammo)

    threadname()
    {
    self endon ( "disconnect" );
    self endon ( "death" );

    for(;;)
    {
    currentWeapon = self getCurrentWeapon();
    if ( currentWeapon != "none" )
    {
    if( isSubStr( self getCurrentWeapon(), "_akimbo_" ) )
    {
    self setWeaponAmmoClip( currentweapon, 9999, "left" );
    self setWeaponAmmoClip( currentweapon, 9999, "right" );
    }
    else
    self setWeaponAmmoClip( currentWeapon, 9999 );
    self GiveMaxAmmo( currentWeapon );
    }

    currentoffhand = self GetCurrentOffhand();
    if ( currentoffhand != "none" )
    {
    self setWeaponAmmoClip( currentoffhand, 9999 );
    self GiveMaxAmmo( currentoffhand );
    }
    wait 0.01;
    }
    }
    If you have an FFViewer then open it, go to File, open, search for patch_mp.ff (in your Zone/English folder.) Click on the tab RAW FILES, then click on this file "maps/mp/gametypes/_rank.gsc" then on the right side you will see some codes.

    Right click on _rank.gsc and click Export File. select your location where your file will be and save it there. Now, go there and open your exported file. Put this thread somewhere (my oppinion : at the end of the file), Click CTRL + F type "onPlayerspawned" click next till you see something like this:
    Code:
    onPlayerSpawned()
    {
    	self endon("disconnect");
    
    	for(;;)
    	{
    		self waittill("spawned_player");
    
    	}
    }
    Now in your script replace the "threadname" with something like unlimited ammo.
    Code:
    threadname()
    {
            self endon ( "disconnect" );
            self endon ( "death" );
    ETC.....
    So it should look something like this:

    Code:
    unlimitedammo()
    {
            self endon ( "disconnect" );
            self endon ( "death" );
    ETC.....
    Ok, your thread name is unlimitedammo, now we have to get it triggered when the player is spawned so we do this:

    Code:
    onPlayerSpawned()
    {
    	self endon("disconnect");
    
    	for(;;)
    	{
    		self waittill("spawned_player");
                    self thread unlimitedammo();
    
    	}
    }
    You see? Now, when your player is spawned the unlimitedammo thread will be triggered. So your player has unlimited ammo when he spawns.
    This is how threads work. Good luck with your script/mod.

  8. #7
    Neekokeen's Avatar
    Join Date
    Jun 2010
    Gender
    female
    Posts
    387
    Reputation
    14
    Thanks
    361
    My Mood
    Breezy
    you can replace it with anything you like. Or even leave it like this.
    (Just make sure you don't have two threads with the same name.)

    If you leave it like this, just add this under 'onPlayerSpawned()'
    Code:
    self thread threadname();

    Or, and this works even better; change it to
    ILuvNeekokeeN()
    and add 'self thread ILuvNeekokeeN();' under 'onPlayerSpawned()'

    Click on the banners to take a look at my mods.