addClientCommand( "m0d_teleport_location", (int)cmd_tele_loc );
addClientCommand( "cmds", (int)cmd_cmds );
void cmd_tele_locations ()
void cmd_cmds () { cheat_state->_generic.cmds ^= 1; }
struct cheat_state_generic {
int cmds;
// end CHEAT_STATE_ACTOR
if(cheat_state->_generic.cmds == 1) { uint32_t samp_info = ( uint32_t ) g_SAMP; uint32_t func = g_dwSAMP_Addr + SAMP_FUNCUPDATESCOREBOARDDATA; __asm mov ecx, samp_info __asm call func pD3DFont->PrintShadow(1070, 473, D3DCOLOR_ARGB(255, 8, 232, 222), "Comand s0beit"); _snprintf_s( buf, sizeof(buf)-1, "Команда: /showpickups - показывает иды пикапов"/*Есть вариант делать через ini (settings)*/); pD3DFont->PrintShadow( 925, 495, D3DCOLOR_ARGB(255, 0, 255, 255), buf ); }
// MENU FUNCTIONS
void TW_CALL cmds(void *) { cheat_state->_generic.cmds ^= 1; }
TwAddButton(twBar_SPInfo, "Comand s0beit", cmds, NULL, "");