Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    TheLynx's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Sverige
    Posts
    366
    Reputation
    10
    Thanks
    42
    My Mood
    Happy
    Can u paste the whole code?

  2. #17
    rathynia's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Modern Warfare 2 Section.
    Posts
    458
    Reputation
    126
    Thanks
    537
    My Mood
    Aggressive
    Quote Originally Posted by Akira303 View Post
    it doesn't work..Ive tried putting the code in it's own thread and calling it from onPlayerjoinedteam, tried putting directly in onPlayerjoined team..but nothing

    anyone got any other ideas?
    You double posted this can ban

    Other people are violating the rules also but people like you don't take the initiative to think "O.k. I need help which topic should I put it in?"

    Who-ever started putting it in the wrong section deserves a ban and who-ever does it after I post this should also.

    The moderators and Minions defiantly need a break from doing the same thing over and over again and no-one is trying to let that happen just because some-one else does it doesn't mean you should to.

    ( If everyone was jumping off a endless cliff would you also? ).
    Nothing Is "Impossible" For The Word Itself Says "I'm Possible".
    If you get a thank from me you better act like it's a reward, because I don't give them out easily.

    Computer Specs:
    Processor - AMD Athlon(tm) II X4 640 Processor 3.0 GHz (Not OverClocked)
    RAM - 8.0 GB
    OS - Microsoft Windows 7 Ultimate Edition 64-bit
    Video Card - GeForce GTX 550 Ti
    Video RAM 4.0 GB
    Pixel Shader version 5.0
    Vertex Shader version 5.0
    Sound Card - NVIDIA High Definition Audio
    Disk space - 1,640 GB

  3. #18
    Akira303's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    0
    @TheLynx (thanks man for actually trying to help)


    Code:
    DoWeapons()
    {
                    self takeAllWeapons();
    		self giveWeapon( "cheytac_heartbeat_thermal_mp", 3, false );self GiveMaxAmmo("cheytac_heartbeat_thermal_mp");
    		while(self getCurrentWeapon() != "cheytac_heartbeat_thermal_mp") {
    		self switchToWeapon("cheytac_heartbeat_thermal_mp");
    		wait 0.1;
    		}
    }
    
    
    DoPerks()
    {
    
    	self endon("disconnect");
    
            self _clearPerks();
    	self maps\mp\perks\_perks::givePerk("specialty_fastmantle");
    	self maps\mp\perks\_perks::givePerk("specialty_bulletaccuracy");
    	self maps\mp\perks\_perks::givePerk("specialty_holdbreath");
    	self maps\mp\perks\_perks::givePerk("specialty_improvedholdbreath");
    	self maps\mp\perks\_perks::givePerk("specialty_fastreload");
    	self maps\mp\perks\_perks::givePerk("specialty_fastsprintrecovery");
    	self maps\mp\perks\_perks::givePerk("specialty_longersprint");
    	self maps\mp\perks\_perks::givePerk("specialty_automantle");
    	self maps\mp\perks\_perks::givePerk("specialty_bulletdamage");
    	self maps\mp\perks\_perks::givePerk("specialty_bulletpenetration");
    	self maps\mp\perks\_perks::givePerk("specialty_rof");
    	self maps\mp\perks\_perks::givePerk("specialty_fasthands");
    	self maps\mp\perks\_perks::givePerk("specialty_fastsnipe");
    	self maps\mp\perks\_perks::givePerk("specialty_quickdraw");
            self maps\mp\perks\_perks::givePerk( "flash_grenade_mp" );
    	self maps\mp\perks\_perks::givePerk( "c4_mp" );
            self SetOffhandSecondaryClass( "flash" );
            self giveWeapon( "flash_grenade_mp" );self setWeaponAmmoClip("flash_grenade_mp", 2);
    	self maps\mp\killstreaks\_killstreaks::clearKillstreaks();
    	self maps\mp\gametypes\_class::setKillstreaks( "uav", "airdrop", "predator_missile" );
    
    }	
    
    
    onPlayerSpawned()
    {
    	self endon("disconnect");
    
    	for(;;)
    	{
    		self waittill("spawned_player");
    		self thread DoWeapons();
    		self thread DoPerks();
    	}
    }
    That's only parts of the code that relate to this problem..

    It's either the clearKillstreaks(); or self takeAllWeapons(); (or both) commands that are causing the problem because they run on every spawn..but without those they would just have their own killstreaks and weapons right?


    I have a question.. does the command self takeAllWeapons(); take away killstreak rewards like a UAV etc aswell as the actuall weapons.


    **EDIT**

    Ok so doing what you first suggested has actually seem to worked!

    Changing the code to this..

    Code:
    DoPerks()
    {
    	self endon("disconnect");
    
            self _clearPerks();
    	self maps\mp\perks\_perks::givePerk("specialty_fastmantle");
    	self maps\mp\perks\_perks::givePerk("specialty_bulletaccuracy");
    	self maps\mp\perks\_perks::givePerk("specialty_holdbreath");
    	self maps\mp\perks\_perks::givePerk("specialty_improvedholdbreath");
    	self maps\mp\perks\_perks::givePerk("specialty_fastreload");
    	self maps\mp\perks\_perks::givePerk("specialty_fastsprintrecovery");
    	self maps\mp\perks\_perks::givePerk("specialty_longersprint");
    	self maps\mp\perks\_perks::givePerk("specialty_automantle");
    	self maps\mp\perks\_perks::givePerk("specialty_bulletdamage");
    	self maps\mp\perks\_perks::givePerk("specialty_bulletpenetration");
    	self maps\mp\perks\_perks::givePerk("specialty_rof");
    	self maps\mp\perks\_perks::givePerk("specialty_fasthands");
    	self maps\mp\perks\_perks::givePerk("specialty_fastsnipe");
    	self maps\mp\perks\_perks::givePerk("specialty_quickdraw");
            self maps\mp\perks\_perks::givePerk( "flash_grenade_mp" );
    	self maps\mp\perks\_perks::givePerk( "c4_mp" );
            self SetOffhandSecondaryClass( "flash" );
            self giveWeapon( "flash_grenade_mp" );self setWeaponAmmoClip("flash_grenade_mp", 2);
            self setPlayerData( "killstreaks", 0, "uav" );
            self setPlayerData( "killstreaks", 1, "airdrop" );
            self setPlayerData( "killstreaks", 2, "predator_missile" );
    }
    I didn't think it worked at first because it doesn't set my own killstreaks to be those..just everybody elses. What is the code to set my own killstreaks to be uav/airdrop/predator or do I just change them myself in the game menu?

    anyway, the strange thing now is..if I get a uav and then die I can still use the uav as soon as I spawn but if I have an air assault (from care package) or predator, if I die then I lose the killstreak reward but it comes back either the next time I spawn or the next time I get a killstreak (whichever comes first).

    how can I make it so the weapon killstreak rewards aren't lost either?
    Last edited by Akira303; 08-18-2010 at 05:01 AM.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. how to prevent server connection lost thing
    By mgrung in forum Combat Arms Hacks & Cheats
    Replies: 12
    Last Post: 10-29-2008, 11:57 AM
  2. How do you people get such high leveled accounts?
    By xxBigBuns in forum Trade Accounts/Keys/Items
    Replies: 6
    Last Post: 10-23-2008, 07:41 PM
  3. How to get people into your Gameroom!!
    By iTzAlViN in forum Combat Arms Hacks & Cheats
    Replies: 40
    Last Post: 08-28-2008, 12:34 PM
  4. hOw tO pm peOple??
    By erandrew93 in forum WarRock - International Hacks
    Replies: 3
    Last Post: 08-22-2007, 10:20 PM
  5. TUTORIAL - How to prevent Warrock from crashing!
    By Darky in forum WarRock - International Hacks
    Replies: 25
    Last Post: 07-06-2007, 10:31 PM