02.04.2016, 14:21
Alguйm de ajuda com um sistema bбsico?
Salvando Ip do player!
Ok, queria ajuda pra ler o IP do jogador!
OnPlayerConnect
Auto Login ! alguem ajuda?

Salvando Ip do player!
PHP код:
new pIp[18], Arquivo[50];
GetPlayerIp(playerid, pIp, sizeof(pIp));
format(Arquivo, sizeof(Arquivo), PlayerFile, DName);
DOF2_SetString(Arquivo, "IP", pIp);
DOF2_SaveFile();
OnPlayerConnect
PHP код:
new Arquivo[50];
format(Arquivo, sizeof(Arquivo), PlayerFile, Nomee(playerid));
if(DOF2_FileExists(Arquivo))
{
if(strcmp //Creio q comece assim ! OBS: ainda aprendendo DOF2 ><, ajuda aqq!
{
APlayerData[playerid][Logado] = true;
}
}

