Weapons Drop
#1

Hey guys, well I'm using Insanity's FS, the drop gun fs which is this: https://sampforum.blast.hk/showthread.php?tid=171730

I tried to restrict some weapons, using the ForbidWeaponDrop but they ain't working. I just tried with the colt, and shotgun, but they ain't working. Here's my code below. Any ideas?

Код:
public ForbidWeaponDrop(weaponid)
{
	weaponid = (weaponid > 46 || weaponid < 0) ? (0) : (weaponid);
	weaponid = (weaponid > 22 || weaponid < 0) ? (0) : (weaponid);
	weaponid = (weaponid > 25 || weaponid < 0) ? (0) : (weaponid);
	ForbiddenWeaponsDrop[weaponid] = true;
	return 1;
}

public FreeWeaponDrop(weaponid)
{
	weaponid = (weaponid > 46 || weaponid < 0) ? (0) : (weaponid);
	weaponid = (weaponid > 22 || weaponid < 0) ? (0) : (weaponid);
	weaponid = (weaponid > 25 || weaponid < 0) ? (0) : (weaponid);
	ForbiddenWeaponsDrop[weaponid] = false;
	return 1;
}
Another thing which I wanted to implement is exactly like in Singleplayer where if a player pickups the same kind of weapon, unless they hit the TAB button, the gun is not replaced. Although in Insanity's FS, say If I had an m4 and I died dropping it, and I respawned with an AK47 and when I pickup my previous dropped weapons, as soon as I pickup the m4, it replaces the AK47. So I want the similar Singleplayer thing with the TAB key. Can anyone help me on this?
+REP to everyone that helps me with this endeavor. Thank you.
Reply


Messages In This Thread
Weapons Drop - by Sting. - 02.01.2018, 11:40
Re: Weapons Drop - by Misiur - 02.01.2018, 13:59
Re: Weapons Drop - by Sting. - 02.01.2018, 18:05
Re: Weapons Drop - by Dayrion - 02.01.2018, 18:12
Re: Weapons Drop - by Sting. - 03.01.2018, 09:09
Re: Weapons Drop - by Dayrion - 03.01.2018, 16:48

Forum Jump:


Users browsing this thread: 2 Guest(s)