Updated to use new natives in cstrike extension instead of SDK calls. Requires SourceMod 1.4.0 or newer.

This commit is contained in:
Richard Helgeby
2012-01-28 19:12:33 +01:00
parent 3ad9d6108b
commit 4e68b52301
4 changed files with 6 additions and 78 deletions

View File

@ -792,7 +792,7 @@ stock WeaponsSlot:WeaponsGetDeployedWeaponSlot(client)
}
/**
* Forces player to drop weapon index.
* Forces player to drop weapon index. (Simplified wrapper)
*
* @param client The client index.
* @param weapon The weapon index to force client to drop.
@ -800,7 +800,7 @@ stock WeaponsSlot:WeaponsGetDeployedWeaponSlot(client)
stock WeaponsForceClientDrop(client, weapon)
{
// Force client to drop weapon.
SDKCall(g_hToolsCSWeaponDrop, client, weapon, true, false);
CS_DropWeapon(client, weapon, true, false);
}
/**