10/08/2022 16:31
public OnIncomingConnection(playerid, ip_address[], port)
{
new string[45];
if(strcmp("127.0.0.1", GetPlayerIPEx(playerid), true) != 0) {
format(string, 128, "ip-api.com/json/%s", GetPlayerIPEx(playerid));
HTTP(playerid, HTTP_GET, string, "", "HTTP_Connect");
return 1;
}
return 1;
}
Eu posso usar assim ou tem que ser na Onplayerconnect?
{
new string[45];
if(strcmp("127.0.0.1", GetPlayerIPEx(playerid), true) != 0) {
format(string, 128, "ip-api.com/json/%s", GetPlayerIPEx(playerid));
HTTP(playerid, HTTP_GET, string, "", "HTTP_Connect");
return 1;
}
return 1;
}
Eu posso usar assim ou tem que ser na Onplayerconnect?