Add cs_get_weaponbox_item native (#548)

* Add cs_get_wpnbox_weapon native

* Rename native + fix strcmp check
This commit is contained in:
HamletEagle
2018-09-07 00:01:47 -07:00
committed by Vincent Herbet
parent 99ebd62653
commit 9a95fd9886
2 changed files with 40 additions and 0 deletions

View File

@ -739,6 +739,17 @@ native cs_get_armoury_type(index, &count = 1);
*/
native cs_set_armoury_type(index, type, count = -1);
/**
* Returns the weapon entity index that was packed into a weaponbox.
*
* @param weaponboxIndex Weaponbox entity index
*
* @return Weapon entity index on success or 0 if no weapon can be found
* @error If a non-weaponbox entity is provided or the entity is invalid, an error will be
* thrown.
*/
native cs_get_weaponbox_item(weaponboxIndex);
/**
* Returns the map zones the client is inside of as a bitflag value.
*