mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-26 13:48:03 +03:00
Mark return as bool & improve documentation
This commit is contained in:
parent
12f0e1743f
commit
9367015d6c
@ -1054,7 +1054,7 @@ static cell AMX_NATIVE_CALL cs_get_user_hasprimary(AMX *amx, cell *params)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// native cs_has_user_weapon_in_slot(index, slot);
|
// native bool:cs_has_user_weapon_in_slot(index, slot);
|
||||||
static cell AMX_NATIVE_CALL cs_has_user_weapon_in_slot(AMX *amx, cell *params)
|
static cell AMX_NATIVE_CALL cs_has_user_weapon_in_slot(AMX *amx, cell *params)
|
||||||
{
|
{
|
||||||
GET_OFFSET("CBasePlayer", m_rgpPlayerItems);
|
GET_OFFSET("CBasePlayer", m_rgpPlayerItems);
|
||||||
|
@ -213,14 +213,14 @@ native cs_get_user_hasprim(index);
|
|||||||
* Returns if the client has a weapon in the specified inventory slot.
|
* Returns if the client has a weapon in the specified inventory slot.
|
||||||
*
|
*
|
||||||
* @param index Client index
|
* @param index Client index
|
||||||
* @param slot Slot to check
|
* @param slot Slot to check. See CS_WEAPONSLOT_* in cstrike_const.inc for a list of possible values.
|
||||||
*
|
*
|
||||||
* @return 1 if the client has a weapon in the specified slot, 0 otherwise
|
* @return 1 if the client has a weapon in the specified slot, 0 otherwise
|
||||||
* @error If the client index is not within the range of 1 to
|
* @error If the client index is not within the range of 1 to
|
||||||
* MaxClients, or the client is not connected, an error will be
|
* MaxClients, or the client is not connected, an error will be
|
||||||
* thrown.
|
* thrown.
|
||||||
*/
|
*/
|
||||||
native cs_has_user_weapon_in_slot(index, slot);
|
native bool:cs_has_user_weapon_in_slot(index, slot);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user