Code:
opd_s broadcast_mod = { 0xD43FF0, TOC };
void(*BROADCAST_MODS)(int r3, int r4, int r5, char* r6, int r7) = (void(*)(int, int, int, char*, int))&broadcast_mod;
void AdminKick(int player)
{
strcpy((char*)0x10050038, PLAYER::GET_PLAYER_NAME(player));
*(int*)0x10050030 = 2;
*(int*)0x1005005C = 33554432;
BROADCAST_MODS(0, 0x10050030, 1, "\"ros.publish\":{\"channel\":\"self\",\"msg\":{\"gm.evt\":{\"e\":\"finger\",\"d\":{\"t\":\"kick\"}}}}", 0);
}
char AdminMessageText[500];
void AdminMessage(int player, char* message)
{
strcpy((char*)0x10050038, PLAYER::GET_PLAYER_NAME(player));
*(int*)0x10050030 = 2;
*(int*)0x1005005C = 33554432;
snprintf(AdminMessageText, sizeof(AdminMessageText), "\"ros.publish\":{\"channel\":\"self\",\"msg\":{\"gm.evt\":{\"e\":\"rockstar_message\",\"d\":{\"msg\":\"%s ~o~Sent From TrueSprx Soon paid Menu!!\"}}}}", message);
BROADCAST_MODS(0, 0x10050030, 1, AdminMessageText, 0);
}
void AdminKill(int player)
{
strcpy((char*)0x10050038, PLAYER::GET_PLAYER_NAME(player));
*(int*)0x10050030 = 2;
*(int*)0x1005005C = 33554432;
BROADCAST_MODS(0, 0x10050030, 1, "\"ros.publish\":{\"channel\":\"self\",\"msg\":{\"gm.evt\":{\"e\":\"finger\",\"d\":{\"t\":\"tristfulness_furbishment\"}}}}", 0);
}
bool AdminKickProtectionv22;
void anothetesttt()
{
if (AdminKickProtectionv22)
{
*(int*)0x01357CF4 = AdminKickProtectionv22 ? 0x60000000 : 0x01357CF4; *(int*)0x013702E4 = AdminKickProtectionv22 ? 0x60000000 : 0x013702E4;
}
}