native
get_modname
Syntax
native get_modname(name[], len);
Description
Retrieves the name of the currently played mod.
Parameters
| name | Buffer to copy mod name to |
|---|---|
| len | Maximum size of the buffer |
Note
This retrieves the short name of the mod. Example: for Counter-Strike,
it will copy "cstrike" to the buffer.
Return
Number of cells written to buffer