![]() |
|
Disable Picking Guns up - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: Disable Picking Guns up (/Thread-Disable-Picking-Guns-up.html) |
Disable Picking Guns up - Cgallagher - 11-05-2010 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 Re: Disable Picking Guns up - master131 - 11-06-2010 Credits to me?
Re: Disable Picking Guns up - Cgallagher - 11-06-2010 master131 Wrote:Credits to me? 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 |