02.01.2018, 11:40
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?
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.
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; }
+REP to everyone that helps me with this endeavor. Thank you.