Single player style drop gun.
Include in your code and begin using the library:
#include < dropgun >
SetPlayerDropWeaponData(playerid, slot, weaponid, ammo);
- Set player weapon data to drop
- Returning 1 on success
ClearPlayerDropWeaponSlot(playerid, slot);
- Clear player one slot data
- Returning 1 on success
ClearPlayerDropWeaponData(playerid);
- Clear player all slots data
- Returning 1 on success
DropPlayerWeapons(playerid);
- Dropping weapons from assigned drop data
- Returning 1 on success
public OnPlayerPickUpDroppedWeapon(playerid, weaponid, ammo, pickupid)
- Called when dropped weapon is picked up
#define WEAPON_DROP_RADIUS
- Setting weapon drop radius (float)
#define MAX_DROP_SLOTS
- Setting player max drop slots (int)
These settings are optional.