SA-MP Forums Archive
[Ajuda] Tempo login com gettime - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Tempo login com gettime (/showthread.php?tid=600807)



Tempo login com gettime - warriorfrog - 13.02.2016

Alguйm me ajuda a fazer uma variavel e uma checagem com gettime pra checar se o player ta 15 dias sem logar pra setar uma outra variavel?


Re: Tempo login com gettime - Lуs - 13.02.2016

PHP код:
new bool:taMaisQue15Dias[MAX_PLAYER];

if(
gettime() >= varUltimaVezLogadoUnix[playerid] + 1296000000) {
    
taMaisQue15Dias[playerid] = true;




Re: Tempo login com gettime - warriorfrog - 13.02.2016

varUltimaVezLogadoUnix[playerid] assim nй? \/

OnPlayerDisconnect
varUltimaVezLogadoUnix[playerid] = getdate();


Re: Tempo login com gettime - Lуs - 13.02.2016

Quote:
Originally Posted by warriorfrog
Посмотреть сообщение
varUltimaVezLogadoUnix[playerid] assim nй? \/

OnPlayerDisconnect
varUltimaVezLogadoUnix[playerid] = getdate();
PHP код:
gettime(); 



Re: Tempo login com gettime - warriorfrog - 14.02.2016

Quote:
Originally Posted by Lуs
Посмотреть сообщение
PHP код:
gettime(); 
Obrigado! +REP