samp.directory
← Scripts and libraries

xunder-matth/samp-dropgun

Single player style drop gun

Library★ 9updated Jul 2020No licencePawn
Open on GitHub

This repository has no licence file. It is public to read, but that alone does not give permission to reuse it.

Try it in the Pawn compiler →

Adds its include files, with the libraries it depends on, to the Pawn compiler in your browser, ready to include in a script.

README.md

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.

This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing

xunder-matth/samp-dropgun: SA-MP Library | samp.directory