crxknives_get_attribute_int
Returns the integer value from a knife attribute.
Syntax
native bool:crxknives_get_attribute_int(id, const attribute[], &dest, bool:playerid = true) /** * Returns the float value from a knife attribute. * * @param id Client index * @param attribute Knife attribute * @param dest Float 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_float(id, const attribute[], &Float:dest, bool:playerid = true) /** * Returns the string value from a knife attribute. * * @note You can also return the knife name by using the "NAME" attribute. * * @param id Client index * @param attribute Knife attribute * @param dest Buffer to store the value in * @param len Max buffer length * @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_str(id, const attribute[], dest[], len, bool:playerid = true) /** * Returns the total number of registered knives. *
Usage
| id | Client index |
| attribute | Knife attribute |
| dest | Integer variable to store the value in |
| 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
Defined in
crxknives.inc
at line 48
.
This documentation was automatically generated from source.