Renamed cs_get_weapon_type -> cs_get_weapon_id

This commit is contained in:
Johnny Bergström 2004-10-14 06:09:01 +00:00
parent daa873d8ed
commit c29a7d34e5
2 changed files with 3 additions and 3 deletions

View File

@ -190,7 +190,7 @@ static cell AMX_NATIVE_CALL cs_get_weapon_silenced(AMX *amx, cell *params) // cs
return 0; 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_* // Get weapon type. Corresponds to CSW_*
// params[1] = weapon index // params[1] = weapon index
@ -1188,7 +1188,7 @@ AMX_NATIVE_INFO cstrike_Exports[] = {
{"cs_get_user_hasprim", cs_get_user_hasprimary}, {"cs_get_user_hasprim", cs_get_user_hasprimary},
{"cs_get_no_knives", cs_get_no_knives}, {"cs_get_no_knives", cs_get_no_knives},
{"cs_set_no_knives", cs_set_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_get_user_tked", cs_get_user_tked},
{"cs_set_user_tked", cs_set_user_tked}, {"cs_set_user_tked", cs_set_user_tked},
{"cs_get_user_driving", cs_get_user_driving}, {"cs_get_user_driving", cs_get_user_driving},

View File

@ -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... /* 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. /* Returns 1 if no knives mode is enabled, else 0.
*/ */