crxknives_get_attribute_str

Returns the string value from a knife attribute.

Syntax

native bool:crxknives_get_attribute_str(id, const attribute[], dest[], len, bool:playerid = true) /** * Returns the total number of registered knives. * * @return Total number of registered knives */ native crxknives_get_knives_num() /** * Gets the client's current knife. * * @param id Client index * @return Client's knife index */ native crxknives_get_user_knife(id) /** * Checks whether or not the client has access to the specified knife. * * @param id Client index * @param knife Knife index * @return True if he has, false otherwise */ native bool:crxknives_has_knife_access(id, knife) /** * Checks whether or not the knife index is valid. * * @param knife Knife index

Usage

id Client index
attribute Knife attribute
dest Buffer to store the value in
len Max buffer length
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

Notes

You can also return the knife name by using the "NAME" attribute.

Defined in crxknives.inc at line 73 . This documentation was automatically generated from source.