crxknives_get_attribute_str

Syntax

native bool:crxknives_get_attribute_str(id, const attribute[], dest[], len, bool:playerid = true)

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

Description

Returns the string value from a knife attribute.

Note

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

Return

True if the client or knife has that attribute set, false otherwise