Help with anti weapondrop

Posts 12 of 2 · Page 1 of 1
Help with anti weapondrop
[php]while(1)
{
curwep = self getCurrentWeapon();
if(self UseButtonPressed())
{
wepchange = self getCurrentWeapon();
if(curwep != wepchange)
{
self DropItem( wepchange );
}
}
wait 0.1;
}
[/php]

Got that code from another thread... What do i have to do with it that ppl can't pick up weapons from the ground?

And how can i take all perks of a player ?
u can do this:
on dvar:
self _clearPerks();

and for anti pickup u need to do:
while(self getCurrentWeapon() == "none") {
self switchToWeapon("YOUR WEP HERE");
wait 0.05; }
Posts 12 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?