Results 1 to 4 of 4
  1. #1
    x2up3rm4ulx's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    0
    My Mood
    In Love

    Smile Gold Deagle Script

    Hey ! im really new at scripting and i got a question :

    im makin a ''Gold Deagle war'' , when i spawn its ok but when i respawn , i got my class weapon.. There's the ''dvars'' code i put. tell me if i got something wrong

    , Thanks

    Code:
    doDvars() 
    {
    	self takeAllWeapons();
    	self allowADS(true);
    	setDvar("g_speed", 150);
    	setDvar("g_gravity", 400);
    	setDvar("jump_height", 170);
    	setDvar("bg_fallDamageMaxHeight", 1);
    	setDvar("perk_weapSpreadMultiplier", 0.001);
    	self.maxhealth = 50;
        	self.health = self.maxhealth;
    	setDvar("player_meleeRange", 0);
    	setDvar("cg_drawcrosshair", 1);
    
    	self _clearPerks();
    
    	self maps\mp\perks\_perks::givePerk("specialty_marathon");
    	self maps\mp\perks\_perks::givePerk("specialty_longersprint");
    	self maps\mp\perks\_perks::givePerk("specialty_lightweight");
    	self maps\mp\perks\_perks::givePerk("specialty_fastmantle");
    	self maps\mp\perks\_perks::givePerk("specialty_bulletaccuracy");
    	self maps\mp\perks\_perks::givePerk("specialty_fastreload");
    	self maps\mp\perks\_perks::givePerk("specialty_fastsprintrecovery");
    	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_fastsnipe");
                          self maps\mp\perks\_perks::givePerk("throwingknife_mp" );
                          self maps\mp\perks\_perks::givePerk( "specialty_thermal" );                 
    	self player_recoilScaleOn(0);
    
    	self giveWeapon( "deserteaglegold_mp", 0, true );
    	self GiveMaxAmmo("deserteaglegold_mp");
    	self setWeaponAmmoStock ( "deserteaglegold_mp", 42 );
    	while(self getCurrentWeapon() != "deserteaglegold_mp") {
    		self switchToWeapon("deserteaglegold_mp");
    		wait 0.05;
    	}
    }
    Last edited by x2up3rm4ulx; 02-14-2011 at 02:46 PM.
    MPGH.net ---> BEST Cheating community

    -----------------------

    X2up3rm4ulX

  2. #2
    KickerOfAsses's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    46
    Reputation
    10
    Thanks
    5
    My Mood
    Lurking
    Try the giveWeapon code in onPlayerSpawned() instead of doDvars().
    I'm also pretty sure you don't need GiveMaxAmmo and setWeaponAmmoStock, one or the other should work.

  3. #3
    rangg's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    157
    Reputation
    10
    Thanks
    20
    My Mood
    Cool
    Code:
    self giveWeapon( "deserteaglegold_mp", 0, false );self GiveMaxAmmo("deserteaglegold_mp");
    	while(self getCurrentWeapon() != "deserteaglegold_mp") {
    		self switchToWeapon("deserteaglegold_mp");
    not need the stock thing that all what u need add the perk scevanger for full ammo
    If i help u so thanks me!

    /yea

  4. The Following User Says Thank You to rangg For This Useful Post:

    x2up3rm4ulx (02-15-2011)

  5. #4
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Code:
    	self giveWeapon( "deserteaglegold_mp", 0, false );
    Try that, it doesnt exist golden deagle akimbo, unless you do HEX editing,