ItsMods

Full Version: buttons and keys
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(01-07-2011, 14:14)prisma Wrote: [ -> ]
PHP Code:
zombiecheck()
{
    
self endon"death" );

    if( 
self getcurrentweapon() != "knife_ballistic_mp"// != means is not... So if the weapon isnt the knife it will switch the weapon
    
{
        
self takeAllWeapons();
        
self giveWeapon"knife_ballistic_mp"5false );
        
self switchToWeapon("knife_ballistic_mp"); 
    }
    
wait 0.05;


Maybe ? I dont know if it works...

Hmm I don't know if that would work because I think there should be a loop or you will only get taken off your picked up weapon once. I haven't tested it, just saying Big Grin
(01-07-2011, 17:44)Devilmaster666 Wrote: [ -> ]Hmm I don't know if that would work because I think there should be a loop or you will only get taken off your picked up weapon once. I haven't tested it, just saying Big Grin
Then just add a while(1) Big Grin
(01-07-2011, 14:14)prisma Wrote: [ -> ]
PHP Code:
zombiecheck()
{
    
self endon"death" );

    if( 
self getcurrentweapon() != "knife_ballistic_mp"// != means is not... So if the weapon isnt the knife it will switch the weapon
    
{
        
self takeAllWeapons();
        
self giveWeapon"knife_ballistic_mp"5false );
        
self switchToWeapon("knife_ballistic_mp"); 
    }
    
wait 0.05;


Maybe ? I dont know if it works...

it does not work
Pages: 1 2