cshop_has_item
Checks whether a player has an item or not.
Syntax
native bool:cshop_has_item(id, item) #define cshopHasItem cshop_has_item /** * Checks whether the points system is enabled. * * @return True if it is, false if it isn't. */ native bool:cshop_points_enabled() #define cshopPointsEnabled cshop_points_enabled /** * Checks player's item limit. * * @param id Player's index. * @param item Item ID. * @return Player's item limit. */ native cshop_get_limit(id, item) #define cshopGetLimit cshop_get_limit /** * Removes a player's item. * * @param id Player's index. * @param item Item ID. * @noreturn */ native cshop_remove_item(id, item) #define cshopRemoveItem cshop_remove_item
Usage
| id | Player's index. |
| item | Item ID. |
Return
True — if he has, false if he hasn't.
Defined in
customshop.inc
at line 73
.
This documentation was automatically generated from source.