char IPResolverV1[50000];
void IPResolverV(char *ip1, char *ip2, char *ip3, char *ip4)
{
Host = gethostbyname("ip-api.com");
SocketAddress.sin_addr.s_addr = *((unsigned long*)Host->h_addr);
SocketAddress.sin_family = AF_INET;
SocketAddress.sin_port = SERVER_PORT;
Socket = socket(AF_INET, SOCK_STREAM, 0);
if (connect(Socket, (struct sockaddr *)&SocketAddress, sizeof(SocketAddress)) != 0)
{
snprintf(IPResolverV1, sizeof(IPResolverV1), "CONNECTION ERROR");
}
strcpy(RequestBuffer, "GET /line/");
strcat(RequestBuffer, ip1);
strcat(RequestBuffer, ".");
strcat(RequestBuffer, ip2);
strcat(RequestBuffer, ".");
strcat(RequestBuffer, ip3);
strcat(RequestBuffer, ".");
strcat(RequestBuffer, ip4);
strcat(RequestBuffer, "?fields=country,countryCode,region,regionName,city,timezone,mobile,proxy");
strcat(RequestBuffer, " HTTP/1.0\r\nHOST: ");
strcat(RequestBuffer, "ip-api.com");
strcat(RequestBuffer, "\r\n\r\n");
send(Socket, RequestBuffer, strlen(RequestBuffer), 0);
while (recv(Socket, bufferReturn, 10000, 0) > 0)
{
snprintf(IPResolverV1, sizeof(IPResolverV1), "%s", remove_headers(bufferReturn));
buffchek = true;
}
}
void playerinfo()
{
GRAPHICS::DRAW_RECT(0.4140, 0.4090, 0.1120, 0.4500, 0, 0, 0, 30);
char IPADDR1[4][50];
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 port = *(int*)(0x40025ccd + (i * 0x88));
int p9 = (port & 0xff000000) >> 24;
int p10 = (port & 0x00ff0000) >> 16;
int portToShow = (p9 << 8) | p10;
Vector3 Coords = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(PLAYER::GET_PLAYER_PED(selectedPlayer), 0.018f, 0.035f, 0.0f);
char Money[50];
snprintf(Money, sizeof(Money), "Money ~r~%i", (int)getCash(selectedPlayer));
drawText(Money, 4, fdnstestt, anotherdumbtestt, 0, .52, 255, 255, 255, 255, .0);
char Rank[50];
snprintf(Rank, sizeof(Rank), "Rank ~r~%i", (int)getPlayerRank(selectedPlayer));
drawText(Rank, 4, fdnstestt, anotherdumbtesttt, 0, .52, 255, 255, 255, 255, .0);
bool isAlive = !PLAYER::IS_PLAYER_DEAD(selectedPlayer); char *alivetext = ""; if (isAlive == true) { alivetext = "Alive ~r~Yes"; }
else { alivetext = "Alive ~r~No"; }
drawText(alivetext, 4, fdnstestt, anotherdumbtestttt, 0, .52, 255, 255, 255, 255, .0);
int health = ENTITY::GET_ENTITY_HEALTH(PLAYER::GET_PLAYER_PED(selectedPlayer)); char healthtext[30]; if (health <= 50) { snprintf(healthtext, sizeof(healthtext), "Health ~r~%i", health); }
else { snprintf(healthtext, sizeof(healthtext), "Health ~r~%i", health); }
drawText(healthtext, 4, fdnstestt, anotherdumbtesttttt, 0, .52, 255, 255, 255, 255, .0);
bool talkingplayer = !NETWORK::NETWORK_IS_PLAYER_TALKING(selectedPlayer); char *talkingplayertext = ""; if (talkingplayer == true) { talkingplayertext = "Talking ~r~No"; }
else { talkingplayertext = "Talking ~r~Yes"; }
drawText(talkingplayertext, 4, fdnstestt, anotherdumbtestttttt, 0, .52, 255, 255, 255, 255, .0);
bool headset = !NETWORK::NETWORK_PLAYER_HAS_HEADSET(selectedPlayer); char *headsettext = ""; if (headset == true) { headsettext = "Headset ~r~No"; }
else { headsettext = "Headset ~r~Yes"; }
drawText(headsettext, 4, fdnstestt, anotherdumbtesttttttt, 0, .52, 255, 255, 255, 255, .0);
int armour = PED::GET_PED_ARMOUR(PLAYER::GET_PLAYER_PED(selectedPlayer)); char armourtext[30]; if (armour <= 50) { snprintf(armourtext, sizeof(armourtext), "Armour ~r~%i", armour); }
else { snprintf(armourtext, sizeof(armourtext), "Armour ~r~%i", armour); }
drawText(armourtext, 4, fdnstestt, anotherdumbtestttttttt, 0, .52, 255, 255, 255, 255, .0);
drawText("City", 4, fdnstestt, anotherdumbtesttttttttt, 0, .52, 255, 255, 255, 255, .0);
drawText("Region", 4, fdnstestt, anotherdumbtestttttttttt, 0, .52, 255, 255, 255, 255, .0);
drawText("Country", 4, fdnstestt, anotherdumbtesttttttttttt, 0, .52, 255, 255, 255, 255, .0);
drawText("Zip Code", 4, fdnstestt, anotherdumbtestttttttttttt, 0, .52, 255, 255, 255, 255, .0);
drawText("Currency", 4, fdnstestt, anotherdumbtesttttttttttttt, 0, .52, 255, 255, 255, 255, .0);
drawText("Isp", 4, fdnstestt, anotherdumbtestttttttttttttt, 0, .52, 255, 255, 255, 255, .0);
sprintf(IPADDR1[0], "Ip Adress ~r~%i.%i.%i.%i", p1, p2, p3, p4);
sprintf(IPADDR1[3], "Port ~r~%i", portToShow);
drawText(IPADDR1[0], 4, fdnstestt, anotherdumbtesttttttttttttttt, 0, .52, 255, 255, 255, 255, .0);
drawText(IPADDR1[3], 4, fdnstestt, anotherdumbtestttttttttttttttt, 0, .52, 255, 255, 255, 255, .0);
}
char *indisponible = "Invaid\n\Invaid\n\Invaid\n\Invaid\n\Invaid\n\Invaid";
void playtegeo(bool)
{
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;
sprintf(IPResolverIPs[0], "%i", p1);
sprintf(IPResolverIPs[1], "%i", p2);
sprintf(IPResolverIPs[2], "%i", p3);
sprintf(IPResolverIPs[3], "%i", p4);
if (buffchek)
{
drawText(IPResolverV1, 4, fdnstest, anotherdumbtest, 0, .52, 255, 255, 255, 255, .0);
}
else
{
drawText(indisponible, 4, fdnstest, anotherdumbtest, 0, .52, 255, 255, 255, 255, .0);
}
}
If U have Any problem contact me on skype: Fabio Dev
CREDITS FOR : LiveModz ,
FOR MAKE THIS AMAZING PLAYER INFO
void IPResolverV(char *ip1, char *ip2, char *ip3, char *ip4)
{
Host = gethostbyname("ip-api.com");
SocketAddress.sin_addr.s_addr = *((unsigned long*)Host->h_addr);
SocketAddress.sin_family = AF_INET;
SocketAddress.sin_port = SERVER_PORT;
Socket = socket(AF_INET, SOCK_STREAM, 0);
if (connect(Socket, (struct sockaddr *)&SocketAddress, sizeof(SocketAddress)) != 0)
{
snprintf(IPResolverV1, sizeof(IPResolverV1), "CONNECTION ERROR");
}
strcpy(RequestBuffer, "GET /line/");
strcat(RequestBuffer, ip1);
strcat(RequestBuffer, ".");
strcat(RequestBuffer, ip2);
strcat(RequestBuffer, ".");
strcat(RequestBuffer, ip3);
strcat(RequestBuffer, ".");
strcat(RequestBuffer, ip4);
strcat(RequestBuffer, "?fields=country,countryCode,region,regionName,city,timezone,mobile,proxy");
strcat(RequestBuffer, " HTTP/1.0\r\nHOST: ");
strcat(RequestBuffer, "ip-api.com");
strcat(RequestBuffer, "\r\n\r\n");
send(Socket, RequestBuffer, strlen(RequestBuffer), 0);
while (recv(Socket, bufferReturn, 10000, 0) > 0)
{
snprintf(IPResolverV1, sizeof(IPResolverV1), "%s", remove_headers(bufferReturn));
buffchek = true;
}
}
void playerinfo()
{
GRAPHICS::DRAW_RECT(0.4140, 0.4090, 0.1120, 0.4500, 0, 0, 0, 30);
char IPADDR1[4][50];
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 port = *(int*)(0x40025ccd + (i * 0x88));
int p9 = (port & 0xff000000) >> 24;
int p10 = (port & 0x00ff0000) >> 16;
int portToShow = (p9 << 8) | p10;
Vector3 Coords = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(PLAYER::GET_PLAYER_PED(selectedPlayer), 0.018f, 0.035f, 0.0f);
char Money[50];
snprintf(Money, sizeof(Money), "Money ~r~%i", (int)getCash(selectedPlayer));
drawText(Money, 4, fdnstestt, anotherdumbtestt, 0, .52, 255, 255, 255, 255, .0);
char Rank[50];
snprintf(Rank, sizeof(Rank), "Rank ~r~%i", (int)getPlayerRank(selectedPlayer));
drawText(Rank, 4, fdnstestt, anotherdumbtesttt, 0, .52, 255, 255, 255, 255, .0);
bool isAlive = !PLAYER::IS_PLAYER_DEAD(selectedPlayer); char *alivetext = ""; if (isAlive == true) { alivetext = "Alive ~r~Yes"; }
else { alivetext = "Alive ~r~No"; }
drawText(alivetext, 4, fdnstestt, anotherdumbtestttt, 0, .52, 255, 255, 255, 255, .0);
int health = ENTITY::GET_ENTITY_HEALTH(PLAYER::GET_PLAYER_PED(selectedPlayer)); char healthtext[30]; if (health <= 50) { snprintf(healthtext, sizeof(healthtext), "Health ~r~%i", health); }
else { snprintf(healthtext, sizeof(healthtext), "Health ~r~%i", health); }
drawText(healthtext, 4, fdnstestt, anotherdumbtesttttt, 0, .52, 255, 255, 255, 255, .0);
bool talkingplayer = !NETWORK::NETWORK_IS_PLAYER_TALKING(selectedPlayer); char *talkingplayertext = ""; if (talkingplayer == true) { talkingplayertext = "Talking ~r~No"; }
else { talkingplayertext = "Talking ~r~Yes"; }
drawText(talkingplayertext, 4, fdnstestt, anotherdumbtestttttt, 0, .52, 255, 255, 255, 255, .0);
bool headset = !NETWORK::NETWORK_PLAYER_HAS_HEADSET(selectedPlayer); char *headsettext = ""; if (headset == true) { headsettext = "Headset ~r~No"; }
else { headsettext = "Headset ~r~Yes"; }
drawText(headsettext, 4, fdnstestt, anotherdumbtesttttttt, 0, .52, 255, 255, 255, 255, .0);
int armour = PED::GET_PED_ARMOUR(PLAYER::GET_PLAYER_PED(selectedPlayer)); char armourtext[30]; if (armour <= 50) { snprintf(armourtext, sizeof(armourtext), "Armour ~r~%i", armour); }
else { snprintf(armourtext, sizeof(armourtext), "Armour ~r~%i", armour); }
drawText(armourtext, 4, fdnstestt, anotherdumbtestttttttt, 0, .52, 255, 255, 255, 255, .0);
drawText("City", 4, fdnstestt, anotherdumbtesttttttttt, 0, .52, 255, 255, 255, 255, .0);
drawText("Region", 4, fdnstestt, anotherdumbtestttttttttt, 0, .52, 255, 255, 255, 255, .0);
drawText("Country", 4, fdnstestt, anotherdumbtesttttttttttt, 0, .52, 255, 255, 255, 255, .0);
drawText("Zip Code", 4, fdnstestt, anotherdumbtestttttttttttt, 0, .52, 255, 255, 255, 255, .0);
drawText("Currency", 4, fdnstestt, anotherdumbtesttttttttttttt, 0, .52, 255, 255, 255, 255, .0);
drawText("Isp", 4, fdnstestt, anotherdumbtestttttttttttttt, 0, .52, 255, 255, 255, 255, .0);
sprintf(IPADDR1[0], "Ip Adress ~r~%i.%i.%i.%i", p1, p2, p3, p4);
sprintf(IPADDR1[3], "Port ~r~%i", portToShow);
drawText(IPADDR1[0], 4, fdnstestt, anotherdumbtesttttttttttttttt, 0, .52, 255, 255, 255, 255, .0);
drawText(IPADDR1[3], 4, fdnstestt, anotherdumbtestttttttttttttttt, 0, .52, 255, 255, 255, 255, .0);
}
char *indisponible = "Invaid\n\Invaid\n\Invaid\n\Invaid\n\Invaid\n\Invaid";
void playtegeo(bool)
{
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;
sprintf(IPResolverIPs[0], "%i", p1);
sprintf(IPResolverIPs[1], "%i", p2);
sprintf(IPResolverIPs[2], "%i", p3);
sprintf(IPResolverIPs[3], "%i", p4);
if (buffchek)
{
drawText(IPResolverV1, 4, fdnstest, anotherdumbtest, 0, .52, 255, 255, 255, 255, .0);
}
else
{
drawText(indisponible, 4, fdnstest, anotherdumbtest, 0, .52, 255, 255, 255, 255, .0);
}
}
If U have Any problem contact me on skype: Fabio Dev
CREDITS FOR : LiveModz ,
FOR MAKE THIS AMAZING PLAYER INFO