ns_remove_upgrade

Синтаксис

native ns_remove_upgrade(idPlayer, upgrade);

Описание

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.

Забележка

This only works in combat.

Params

idPlayer     The player index to change upgrades for.

Params

ugprade      The impulse number for the upgrade to strip.

Връщаща стойност

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.