Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 958 Bytes

README.md

File metadata and controls

63 lines (42 loc) · 958 Bytes

samp-dropgun

Single player style drop gun.

Installation

Include in your code and begin using the library:

#include < dropgun >

Usage

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

Configuration

#define WEAPON_DROP_RADIUS
  • Setting weapon drop radius (float)
#define MAX_DROP_SLOTS
  • Setting player max drop slots (int)

These settings are optional.