DropPlayerItem doesn't exist?
Any other way to drop weapon without using any of the below commands?
FakeClientCommand/FakeClientCommandEx or RemovePlayerItem
I would like to drop.
PHP Code:
new g_PrimaryWeapon = -1;
#define CS_SLOT_PRIMARY 0
g_PrimaryWeapon = GetPlayerWeaponSlot(client, CS_SLOT_PRIMARY);
if (g_PrimaryWeapon != -1)
{
decl String: PrimaryWeapon_Name[64];
GetEdictClassname(g_PrimaryWeapon, PrimaryWeapon_Name, sizeof(PrimaryWeapon_Name));
//RemovePlayerItem(client, g_PrimaryWeapon);
//FakeClientCommand(client, "drop g_PrimaryWeapon");
//FakeClientCommandEx(client, "drop g_PrimaryWeapon");
DropPlayerItem(client, g_PrimaryWeapon);
return true;
}