From 9367015d6c6208d4001e8f2c2048e20e3b43fed4 Mon Sep 17 00:00:00 2001 From: HamletEagle Date: Sun, 30 Sep 2018 12:17:49 -0700 Subject: [PATCH] Mark return as bool & improve documentation --- modules/cstrike/cstrike/CstrikeNatives.cpp | 2 +- plugins/include/cstrike.inc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/cstrike/cstrike/CstrikeNatives.cpp b/modules/cstrike/cstrike/CstrikeNatives.cpp index 466f291d..5261d17b 100644 --- a/modules/cstrike/cstrike/CstrikeNatives.cpp +++ b/modules/cstrike/cstrike/CstrikeNatives.cpp @@ -1054,7 +1054,7 @@ static cell AMX_NATIVE_CALL cs_get_user_hasprimary(AMX *amx, cell *params) 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) { GET_OFFSET("CBasePlayer", m_rgpPlayerItems); diff --git a/plugins/include/cstrike.inc b/plugins/include/cstrike.inc index f03ca2a8..a271eea9 100755 --- a/plugins/include/cstrike.inc +++ b/plugins/include/cstrike.inc @@ -213,14 +213,14 @@ native cs_get_user_hasprim(index); * Returns if the client has a weapon in the specified inventory slot. * * @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 * @error If the client index is not within the range of 1 to * MaxClients, or the client is not connected, an error will be * thrown. */ -native cs_has_user_weapon_in_slot(index, slot); +native bool:cs_has_user_weapon_in_slot(index, slot); /**