crxknives_knife_updated
Called when the client's knife model is changed.
Syntax
forward crxknives_knife_updated(id, knife, bool:onconnect) /** * Called when the client attempts to change his knife model. * * @param id Client index * @param knife Knife index * @return PLUGIN_HANDLED to prevent the client from changing his knife, * PLUGIN_CONTINUE to allow the change */ forward crxknives_attempt_change(id, knife) /** * Checks whether or not the client can use a knife skill according to the cvar "km_knife_only_skills" * * @param id Client index * @return True if he can, false otherwise */ native bool:crxknives_can_use_skill(id) /** * Returns the integer value from a knife attribute. * * @param id Client index * @param attribute Knife attribute * @param dest Integer variable to store the value in * @param playerid If set to false, the "id" parameter will be treated as a knife index instead * @return True if the client or knife has that attribute set, false otherwise */ native bool:crxknives_get_attribute_int(id, const attribute[], &dest, bool:playerid = true)
Usage
| id | Client index |
| knife | Knife index |
| onconnect | True if this was called when the client first joined, false otherwise |
Return
This function has no return value.
Defined in
crxknives.inc
at line 19
.
This documentation was automatically generated from source.