Quote:
Originally Posted by xCoderx
...
So instead of doing:
PHP Code:
RemovePlayerItem(iClient, iWeapon); AcceptEntityInput(iWeapon, "Kill");
You would do this:
PHP Code:
SafeRemoveWeapon(iClient, iWeapon); // True on success.
...
|
Quote:
Originally Posted by Neuro Toxin
Just calling AcceptEntityInput with "Kill" has worked for donkies years without side effects.
...
|
Some time ago a read in a thread to use SDKHooks_DropWeapon instead of RemovePlayerItem or CS_DropWeapon. But unfortunately I can't find it or remember the advanced of using SDKHooks instead. Also, I never recognized a crash related to RemovePlayerItem.
PHP Code:
SDKHooks_DropWeapon(client, weapon, NULL_VECTOR, NULL_VECTOR);
AcceptEntityInput(iWeapon, "Kill");
__________________