Skip to content

xunder-matth/samp-dropgun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Single player style drop gun

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages