void addCmd ( char *name, int funci )
{
if ( name == NULL || funci== NULL)
return;
/* if ( strlen(name) > 30 )
{
Log( "Error: command name '%s' was too long.", name );
return;
}
//Проверка на длину команды, реализуй..
*/
uint32_t data = g_dwSAMP_Addr + 0x212A28;
uint32_t func = g_dwSAMP_Addr + 0x7A8C0;
__asm mov eax, data
__asm mov ecx, [eax]
__asm push funci
__asm push name
__asm call func
}