ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 3477

Hide Players IP code

by RoyaleSprx - 07-19-2019 - 05:11 PM
#1
Quote:
Code:
Hidden Content
You must register or login to view this content.

Reply
#2
(07-19-2019 - 05:11 PM)RoyaleSprx Wrote:
Quote:
Code:
///////Code optimized by sxsxmods////////////
bool HideIps = false;
void IP(int isSelected)
{
if (HideIps == false)
{
HideIps= false;
char IPs[50], IPs2[50], IPs3[50], IPs4[50];
for (int i = 0; i < 34; i++)
{
int Handle[13];
NETWORK_HANDLE_FROM_PLAYER(isSelected, &Handle[0], 13);
char *RealName = NETWORK_GET_GAMERTAG_FROM_HANDLE(&Handle[0]);
char* name1 = GET_PLAYER_NAME(isSelected);
char *ipName = ReadBytes(0x40025C80 + (i * 136), 100);
if (!strcmp(RealName, ipName))
{
int ip = *(int *)(0x40025CC8 + (i * 0x88));
int p1 = (ip & 0xff000000) >> 24;
int p2 = (ip & 0x00ff0000) >> 16;
int p3 = (ip & 0x0000ff00) >> 8;
int p4 = (ip & 0x000000ff) >> 0;

int internal_ip = *(int *)(0x40025CA8 + (i * 0x88));
int p5 = (internal_ip & 0xff000000) >> 24;
int p6 = (internal_ip & 0x00ff0000) >> 16;
int p7 = (internal_ip & 0x0000ff00) >> 8;
int p8 = (internal_ip & 0x000000ff) >> 0;

char *Region = ReadBytes(0x40025c96 + (i * 0x88), 100);

int port = *(int*)(0x40025ccd + (i * 0x88));
int p9 = (port & 0xff000000) >> 24;
int p10 = (port & 0x00ff0000) >> 16;
int portToShow = (p9 << 8) | p10;

snprintf(IPs, sizeof(IPs), "\n\n\n\n\n\n\n\n\n\n\n\n\nIP Adress : %i.%i.%i.%i", p1, p2, p3, p4);
snprintf(IPs2, sizeof(IPs2), "\n\n\n\n\n\n\n\n\n\n\n\n\n\nPS3 IP : %i.%i.%i.%i", p5, p6, p7, p8);
sprintf(IPs3, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nPort : %i", portToShow);
sprintf(IPs4, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nRegion : %s", Region);

if (strstr(IPs, "255.255.255.255") == NULL && strstr(IPs, "0.0.0.0") == NULL)
{
InfoText(IPs, optionsFont, InfoTextX, 0.123, 0.38f, 0.38f, 255, 255, 255, 255, false);//MAIN IP
InfoText(IPs2, optionsFont, InfoTextX, 0.123, 0.38f, 0.38f, 255, 255, 255, 255, false);//PS3 IP
InfoText(IPs3, optionsFont, InfoTextX, 0.123, 0.38f, 0.38f, 255, 255, 255, 255, false);//PORT
InfoText(IPs4, optionsFont, InfoTextX, 0.123, 0.38f, 0.38f, 255, 255, 255, 255, false);//COUNTRY
}
 }
  }
}
else
{
HideIps = true;
drawText("\n\n\n\n\n\n\n\n\n\n\n\n\nIP Adress:  Hidden", optionsFont, InfoTextX, 0.123, 0.38f, 0.38f, 255, 255, 255, 255, false);//MAIN IP
drawText("\n\n\n\n\n\n\n\n\n\n\n\n\n\nPS3 IP:  Hidden", optionsFont, InfoTextX, 0.123, 0.38f, 0.38f, 255, 255, 255, 255, false);//PS3 IP
drawText("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nPort:  Hidden", optionsFont, InfoTextX, 0.123, 0.38f, 0.38f, 255, 255, 255, 255, false);//PORT
drawText("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nRegion:  Hidden", optionsFont, InfoTextX, 0.123, 0.38f, 0.38f, 255, 255, 255, 255, false);//COUNTRY
}
}

lol
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Reply
#3
(07-19-2019 - 06:41 PM)NoNameV2345 Wrote:
(07-19-2019 - 05:11 PM)RoyaleSprx Wrote:
Quote:
Code:
///////Code optimized by sxsxmods////////////
bool HideIps = false;
void IP(int isSelected)
{
if (HideIps == false)
{
HideIps= false;
char IPs[50], IPs2[50], IPs3[50], IPs4[50];
for (int i = 0; i < 34; i++)
{
int Handle[13];
NETWORK_HANDLE_FROM_PLAYER(isSelected, &Handle[0], 13);
char *RealName = NETWORK_GET_GAMERTAG_FROM_HANDLE(&Handle[0]);
char* name1 = GET_PLAYER_NAME(isSelected);
char *ipName = ReadBytes(0x40025C80 + (i * 136), 100);
if (!strcmp(RealName, ipName))
{
int ip = *(int *)(0x40025CC8 + (i * 0x88));
int p1 = (ip & 0xff000000) >> 24;
int p2 = (ip & 0x00ff0000) >> 16;
int p3 = (ip & 0x0000ff00) >> 8;
int p4 = (ip & 0x000000ff) >> 0;

int internal_ip = *(int *)(0x40025CA8 + (i * 0x88));
int p5 = (internal_ip & 0xff000000) >> 24;
int p6 = (internal_ip & 0x00ff0000) >> 16;
int p7 = (internal_ip & 0x0000ff00) >> 8;
int p8 = (internal_ip & 0x000000ff) >> 0;

char *Region = ReadBytes(0x40025c96 + (i * 0x88), 100);

int port = *(int*)(0x40025ccd + (i * 0x88));
int p9 = (port & 0xff000000) >> 24;
int p10 = (port & 0x00ff0000) >> 16;
int portToShow = (p9 << 8) | p10;

snprintf(IPs, sizeof(IPs), "\n\n\n\n\n\n\n\n\n\n\n\n\nIP Adress : %i.%i.%i.%i", p1, p2, p3, p4);
snprintf(IPs2, sizeof(IPs2), "\n\n\n\n\n\n\n\n\n\n\n\n\n\nPS3 IP : %i.%i.%i.%i", p5, p6, p7, p8);
sprintf(IPs3, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nPort : %i", portToShow);
sprintf(IPs4, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nRegion : %s", Region);

if (strstr(IPs, "255.255.255.255") == NULL && strstr(IPs, "0.0.0.0") == NULL)
{
InfoText(IPs, optionsFont, InfoTextX, 0.123, 0.38f, 0.38f, 255, 255, 255, 255, false);//MAIN IP
InfoText(IPs2, optionsFont, InfoTextX, 0.123, 0.38f, 0.38f, 255, 255, 255, 255, false);//PS3 IP
InfoText(IPs3, optionsFont, InfoTextX, 0.123, 0.38f, 0.38f, 255, 255, 255, 255, false);//PORT
InfoText(IPs4, optionsFont, InfoTextX, 0.123, 0.38f, 0.38f, 255, 255, 255, 255, false);//COUNTRY
}
 }
  }
}
else
{
HideIps = true;
drawText("\n\n\n\n\n\n\n\n\n\n\n\n\nIP Adress:  Hidden", optionsFont, InfoTextX, 0.123, 0.38f, 0.38f, 255, 255, 255, 255, false);//MAIN IP
drawText("\n\n\n\n\n\n\n\n\n\n\n\n\n\nPS3 IP:  Hidden", optionsFont, InfoTextX, 0.123, 0.38f, 0.38f, 255, 255, 255, 255, false);//PS3 IP
drawText("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nPort:  Hidden", optionsFont, InfoTextX, 0.123, 0.38f, 0.38f, 255, 255, 255, 255, false);//PORT
drawText("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nRegion:  Hidden", optionsFont, InfoTextX, 0.123, 0.38f, 0.38f, 255, 255, 255, 255, false);//COUNTRY
}
}

lol

whats up bro?
Reply
#4
Great.
One question: I'm creating a Script and "snprintf" don't work on this. Do you know if with "stradd" or "straddi" the code would work on the Script?

Thanks.
Reply
#5
(07-19-2019 - 09:17 PM)ELSANTO1 Wrote: Great.
One question: I'm creating a Script and "snprintf" don't work on this. Do you know if with "stradd" or "straddi" the code would work on the Script?

Thanks.


What definition do you need?
Reply
#6
I need an intrinsic that works like "snprint" on my Script Menu
Reply
#7
nice.
have a good day.
This account is currently banned
Ban reason: Leeching/spamming
Reply
#8
This Is Good. Thank You!
This account is currently banned
Ban reason: Cool
Reply
#9
this works for all players and other modders? or just u can see the "proxied" IP
Reply
#10
(07-19-2019 - 05:11 PM)RoyaleSprx Wrote:
Quote:
Code:
Hidden Content
You must register or login to view this content.

This its for PS3?
Disc = 0xemiil
Reply

Users browsing: 7 Guest(s)