[server] Implement and match n_GetWeaponName(...)

This commit is contained in:
RD42 2024-04-28 22:35:04 +08:00
parent 7767dc226c
commit d4b24be604

View File

@ -381,10 +381,13 @@ static cell AMX_NATIVE_CALL n_SetWorldTime(AMX *amx, cell *params)
return 0; return 0;
} }
// native GetWeaponName(weaponid, const weapon[], len)
static cell AMX_NATIVE_CALL n_GetWeaponName(AMX *amx, cell *params) static cell AMX_NATIVE_CALL n_GetWeaponName(AMX *amx, cell *params)
{ {
// TODO: GetWeaponName CHECK_PARAMS(3);
return 0; if(params[1] > WEAPON_COLLISION) return 0;
return set_amxstring(amx,params[2],pNetGame->GetWeaponName(params[1]),params[3]);
} }
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------