segunda-feira, 15 de abril de 2013

0 GEO-IP



۞ HISTÓRIA

    Já faz mais de três anos desde que lançou nenhum script. Mas, agora estou dando a você a Versão 2.0 (Atualizado para 2.1 em 2012/12/31) do Legen ... esperar por ele ... Dary Script Geo-IP. A versão anterior era um filterscript simples que trabalhou no método de manipulação de arquivo. Mas este é o melhor e usa banco de dados SQLite em vez de plano velha maneira manipulação de arquivos.

Nota: Leia o Change Log abaixo para saber sobre as alterações feitas em versões recentes do script.

۞ DESCRIÇÃO

    The Script GEO-IP ajuda a fornecer a localização geográfica de um jogador de qualquer acordo com a sua / seu endereço IP público. Mas, não espere demais resultados precisos. Os resultados serão em algum lugar próximo ao local exato. Usando este script é muito fácil e não precisa de muita experiência de scripting.

۞ VERSÕES SUB

    
COMPLETA

        
Dá Localização Estado, País e Cidade.
        Usa um grande banco de dados (114MB)
        Pode ficar em servidores lentos / pessoal (como um atraso segundos quando alguém se junta)


    
LITE

        
Dá Localização País só.
        
Usa um pequeno banco de dados (2.82MB)
        
Comparativamente muito mais rápido


۞ USO

    COMPLETA

        
Remova qualquer versão antiga (s) do GEO-IP / GEO-IP Lite ou há chances de que nova versão irá mostrar algumas falhas.
        Extraia o conteúdo do arquivo em seu diretório Servidor SAMP ou manualmente colocar todos os arquivos dos arquivos às respectivas pastas no diretório de servidor SAMP.
        Agora abra seu filterscript e adicionar


۞ USO


      Vou estar postando isso em ingles ja para não mudaar nada

  1. Remove any old version(s) of GEO-IP / GEO-IP Lite or there are chances that newer version will show some glitches.
  2. Extract the contents of the archive into your SAMP Server directory OR Manually place all the files from the archives to the respective folders in the SAMP server directory.
  3. Now open your filterscript and add
    Code:
    #include <geo_ip>
    just below #include <a_samp>
  4. Now you can use the function anywhere like this
    Code:
    new Country[16], State[128], City[128];
    isLocal=GetPlayerLocation(playerid,Country,State,City);
    OR
    Code:
    new Country[16], State[128], City[128];
    isLocal=GetPlayerLocation(playerid,Country,State,City,1);
    The third parameter is optional. It is isotype parameter. You will find more info about it below, in the FUNCTIONS section.

LITE
  • 1st step same as above.
  • Now open your filterscript and add
    Code:
    #include <geo_ip_lite>
    just below #include <a_samp>
  • Now you can use the function anywhere like this
    Code:
    new Country[16];
    isLocal=GetPlayerLocation(playerid,Country);
    OR
    Code:
    new Country[16];
    isLocal=GetPlayerLocation(playerid,Country,1);
    The third parameter is optional. It is isotype parameter. You will find more info about it below, in the FUNCTIONS section.


۞ FUNCTIONS
۞ DOWNLOADS
FULL
  • GetPlayerLocation(playerid, Country[],State[], City[],isotype);
    • Returns 0 when connecting to the local server, otherwise 1.
    • Country[] hold the string of the country name and "Localhost" is you are connecting to local server.
    • State[] and City[] hold the string values of the State and City for the give IP.
    • isotype (OPTIONAL) is set to 2 by default and is an optional parameter. The valid values for isotype are :
      • 0 (Default) = 2 Alphabet name. Like IN
      • 1 = 3 Alphabet name. Like IND
      • 2 = Full Country Name. Like INDIA
  • GetPlayerCountry(playerid,isotype);
    • Returns the Country as string (according to the isotype, if provided, as isotype is default to 2 for this one).
  • GetPlayerProvince(playerid);
    • Returns the State/Province as string.
  • GetPlayerCity(playerid);
    • Returns the City as string.


LITE
  • GetPlayerLocation(playerid, Country[],isotype);
    • Returns 0 when connecting to the local server, otherwise 1.
    • Country[] hold the string of the country name and "Localhost" is you are connecting to local server.
    • isotype (OPTIONAL) is set to 2 by default and is an optional parameter. The valid values for isotype are :
      • 0 = 2 Alphabet name. Like IN
      • 1 = 3 Alphabet name. Like IND
      • 2(Default) = Full Country Name. Like INDIA
  • GetPlayerCountry(playerid,isotype);
    • Returns the Country as string.

4Shared Links
MegaCloud Links


۞ CREDITS


 


0 comentários: