[Ajuda] GeoIP
#1

sempre q algum conecta no server da tipo assim

cidade: NICK DO PLAYER
pais: NICK DO PLAYER

ASSIM POR DIANTE

pawn Код:
new Stringg[200];
   
    format(Stringg,sizeof(Stringg),"Entrou >> %s(%d) - ISP: %s Pais: %s Cidade: %s GMT: %i",nome(playerid),playerid,GetPlayerISP(playerid, Stringg,sizeof(Stringg)),GetPlayerCountry(playerid, Stringg,sizeof(Stringg)),GetPlayerCity(playerid, Stringg,sizeof(Stringg)),GetPlayerGMT(playerid));
    SendClientMessageToAll(Cinza,Stringg);
to usano essa include https://sampforum.blast.hk/showthread.php?tid=296171
Reply
#2

pawn Код:
new Cidade[64];
GetPlayerCity(playerid, Cidade, sizeof(Cidade));
Reply
#3

Testei aqui no meu tambйm, mas sempre da Unknown.
Reply
#4

pawn Код:
new ISP[64];
        GetPlayerISP(playerid, ISP,sizeof(ISP));
    new Cidade[64];
        GetPlayerCity(playerid, Cidade, sizeof(Cidade));
    new Pais[64];
        GetPlayerCountry(playerid, Pais,sizeof(Pais));
    new GMT = GetPlayerGMT(playerid);
   
    new Stringg[200];
   
    format(Stringg,sizeof(Stringg),"Entrou >> %s(%d) - ISP: %s Pais: %s Cidade: %s GMT: %i",nome(playerid),playerid,ISP,Pais,Cidade,GMT);
    SendClientMessageToAll(Cinza,Stringg);
Reply
#5

Pois й, acho que nгo presta mais.
Reply
#6

Eu utilizo em meu servidor, desconhecido sгo apenas os novos IPs adicionados ao BR, a maioria й bem funcional, mas eu futuramente irei migrar para uma DB prуpria.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)