|
How to use the resources anticheat in other plugins?
Native exported functions for AMX MOD X In order to use the following function in their plugins, you must copy the file ucp.inc in the directory addons\amxmodx\scripting\include\ and add the line #include <ucp.inc> the source of your plugin. Function: ucp_id(index, outbuffer[]) //For get a unique client identifier. Example: new UCPID[9]
ucp_id(id, UCPID) log_amx (“ucp_id: %s”, UCPID) Function: get_user_authid2(index, outbuffer[], len) //Similarly, the function ucp_id. Example: new UCPID[9]
get_user_authid2(id, UCPID, charsmax(UCPID)) log_amx (“ucp_id: %s”, UCPID) Function: get_user_build(index, outbuffer[]) //For get build number client games. Example: new ClientBUILD[5]
get_user_build(id, ClientBUILD) log_amx (“client build number: %s”, ClientBUILD) Function: get_user_os(index, outbuffer[]) //For facilities operating system together with a supported discharge. Example: new ClientOS[12]
get_user_os(id, ClientOS) log_amx (“client os number: %s”, ClientOS) |
|