void spoofMessageSenderProtection(bool toggle)
{
char off[] = { 0x00, 0x00, 0x01, 0x00 };//00 00 00 20
char on[] = { 0x01, 0x00, 0x01, 0x00 };//01 00 00 20
if (toggle)
{
int msgType = Read_Global(12767);
switch (msgType)
{
case 3:
char* nameOfSender = Read_Global_Char(2375);
char* nameOfSenderMessage = Read_Global_Char(101656);
if (strstr(nameOfSender, PLAYER::GET_PLAYER_NAME(PLAYER::PLAYER_ID())))
{
char prot[500];
snprintf(prot, 500, "~r~Someone tried to send you a spoofed message!\nMessage: %s", nameOfSenderMessage);
PRINT(prot, 5000);
write_process(0x1879F69, on, 4);//0x820A1A41
}
else
{
write_process(0x1879F69, off, 4);
}
Write_Global(12767, 0);
break;
}
write_process(0x1879F69, off, 4);
}
}
Coded By: Wesley Marcos Dev
If U have any problems contact me on skype: Fabio Dev
{
char off[] = { 0x00, 0x00, 0x01, 0x00 };//00 00 00 20
char on[] = { 0x01, 0x00, 0x01, 0x00 };//01 00 00 20
if (toggle)
{
int msgType = Read_Global(12767);
switch (msgType)
{
case 3:
char* nameOfSender = Read_Global_Char(2375);
char* nameOfSenderMessage = Read_Global_Char(101656);
if (strstr(nameOfSender, PLAYER::GET_PLAYER_NAME(PLAYER::PLAYER_ID())))
{
char prot[500];
snprintf(prot, 500, "~r~Someone tried to send you a spoofed message!\nMessage: %s", nameOfSenderMessage);
PRINT(prot, 5000);
write_process(0x1879F69, on, 4);//0x820A1A41
}
else
{
write_process(0x1879F69, off, 4);
}
Write_Global(12767, 0);
break;
}
write_process(0x1879F69, off, 4);
}
}
Coded By: Wesley Marcos Dev
If U have any problems contact me on skype: Fabio Dev