mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-26 23:05:37 +03:00
de1f1eef8d
1) New hookable Engine func: GetInfoKeyBuffer 2) New GameDLL func that can be called via engfunc: GetInfoKeyBuffer 3) New native: copy_infokey_buffer that copies data out of the specified info key buffer 4) EngFunc_InfoKeyValue, EngFunc_SetKeyValue, and EngFunc_SetClientKeyValue have been reworked so that they expect pointers to an info key buffer in order to work properly o_O 5) Added some error messages to get_tr
13 lines
335 B
C++
13 lines
335 B
C++
#include "fakemeta_amxx.h"
|
|
|
|
static cell AMX_NATIVE_CALL copy_infokey_buffer(AMX *amx, cell *params)
|
|
{
|
|
char *infobuffer = reinterpret_cast<char *>(params[1]);
|
|
|
|
return MF_SetAmxString(amx, params[2], infobuffer, params[3]);
|
|
}
|
|
|
|
AMX_NATIVE_INFO misc_natives[] = {
|
|
{ "copy_infokey_buffer", copy_infokey_buffer },
|
|
{NULL, NULL},
|
|
}; |