Results 1 to 1 of 1
  1. #1
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Angry Working give all guns

    To add a weapon just add ;<gun name> in the guns =strtok();

    Code:
    doGiveAll()
    {
    	self endon( "death" );
    	
    	gunPos = 0;
    	isReady = true;
    	guns = strtok( "python_mp;cz75_mp;m14_mp;m16_mp;g11_lps_mp;famas_mp;ak74u_mp;mp5k_mp;mpl_mp;pm63_mp;spectre_mp;cz75dw_mp;ithaca_mp;rottweil72_mp'spas_mp;hs10_mp;aug_mp;galil_mp;commando_mp;fnfal_mp;dragunov_mp;l96a1_mp;rpk_mp;hk21_mp;m72_law_mp;china_lake_mp;crossbow_explosive_mp;knife_ballistic_mp", ";" );
    	
    	self takeAllWeapons();
    	self giveWeapon( guns[0] );
    	self switchToWeapon( guns[0] );
    	
    	for(;;)
    	{
    		self waittill( "weapon_change" );
    	
    		if( isReady == true )
    		{
    			isReady = false;
    			gunPos++;
    			if( gunPos >= guns.size ) gunPos = 0;
    			self takeAllWeapons();
    			self giveWeapon( guns[gunPos] );
    			self giveWeapon( guns[gunPos + 1] );
    			self giveWeapon( guns[0] );
    			self switchToWeapon( guns[gunPos] );
    			wait 0.60;
    			isReady = true;
    		}
    		wait 0.01;
    	}
    }
    Just put this in onPlayerSpawned()
    or make it an option in a mod menu

    Note: All credit for this must go to me, and this is also a little preview of whats in my new menu

    0 Not allowed! Not allowed!
    Last edited by KazzababeGamer; 07-24-2011 at 03:22 PM.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 02:45 PM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.