ItsMods

Full Version: Disable Picking Guns up
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code:
DisablePickingGuns()
{
    self waittill( "spawned_player" );
    
    for(;;)
    {
    curwep = self getCurrentWeapon();
    if(self UseButtonPressed())
    {
        wait 1;
        wepchange = self getCurrentWeapon();
        if(curwep != wepchange)
        {
            self DropItem( wepchange );
        }
    }
    wait 0.1;
}

}

Put this OnPlayerSpawned()

Code:
self thread DisablePickingGuns();

Credits: Master131
Credits to me? Big Grin
master131 Wrote:Credits to me? Big Grin

Srry i used your code originally posted on MPGH and partially the one i had b4 your post because yours had and error.
Ill add ya