diff --git a/dlls/cstrike/cstrike.cpp b/dlls/cstrike/cstrike.cpp index 1210c1f4..d9803217 100755 --- a/dlls/cstrike/cstrike.cpp +++ b/dlls/cstrike/cstrike.cpp @@ -190,7 +190,7 @@ static cell AMX_NATIVE_CALL cs_get_weapon_silenced(AMX *amx, cell *params) // cs return 0; } -static cell AMX_NATIVE_CALL cs_get_weapon_type(AMX *amx, cell *params) // cs_get_weapon_type(index); = 1 param +static cell AMX_NATIVE_CALL cs_get_weapon_id(AMX *amx, cell *params) // cs_get_weapon_id(index); = 1 param { // Get weapon type. Corresponds to CSW_* // params[1] = weapon index @@ -1188,7 +1188,7 @@ AMX_NATIVE_INFO cstrike_Exports[] = { {"cs_get_user_hasprim", cs_get_user_hasprimary}, {"cs_get_no_knives", cs_get_no_knives}, {"cs_set_no_knives", cs_set_no_knives}, - {"cs_get_weapon_type", cs_get_weapon_type}, + {"cs_get_weapon_id", cs_get_weapon_id}, {"cs_get_user_tked", cs_get_user_tked}, {"cs_set_user_tked", cs_set_user_tked}, {"cs_get_user_driving", cs_get_user_driving}, diff --git a/plugins/include/cstrike.inc b/plugins/include/cstrike.inc index c1c313ae..2b25e015 100755 --- a/plugins/include/cstrike.inc +++ b/plugins/include/cstrike.inc @@ -203,7 +203,7 @@ native cs_set_weapon_ammo(index, newammo); /* Get weapon type. Corresponds to CSW_* in amxconst.inc: 1 is CSW_P228, 2 is CSW_SCOUT and so on... */ -native cs_get_weapon_type(index); +native cs_get_weapon_id(index); /* Returns 1 if no knives mode is enabled, else 0. */