AMX Mod X API Documentation

Signature
native ns_remove_upgrade(idPlayer, upgrade);
Description

Removes an upgrade from the player's bought and active upgrade lists.

This will not refund the points spent on the upgrade, nor will it

immediately strip the upgrade if the player is alive. Rather, it will

make it so the player no longer receives the upgrade on spawn.

Notes
  • This only works in combat.
Parameters
  • idPlayer The player index to change upgrades for.
  • ugprade The impulse number for the upgrade to strip.
Returns

2 for upgrade removed from player's bought and active list.

1 for upgrade removed from player's bought list only.

3 for upgrade removed from player's active list only (shouldn't happen, just incase.)

0 for the player didn't have the upgrade in either list.

Назад
Верх