[AJUDA]Heavens Roleplay 0.3c - 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]Heavens Roleplay 0.3c (
/showthread.php?tid=259269)
[AJUDA]Heavens Roleplay 0.3c -
mengueh - 03.06.2011
Olб galera, como o prуprio Title diz, preciso de uma ajudinha ai, para como setar PayDay fixo.
Uma ajuda para fazer um sistema de aprenзгo de veнculos (comando para lspd) onde se o carro for aprendido mesmo com xiter, nгo poder ligar, sу apуs de pagar o aprendimento.
Obrigado galera!
Re: [AJUDA]Heavens Roleplay 0.3c -
Shadoww5 - 03.06.2011
PHP код:
#include <a_samp>
#include <time>
forward PD();
new tempo;
public OnGameModeInit()
{
new h;
SetTimer("PD", 60000,true);
gettime(h);
tempo = h;
return 1;
}
public PD()
{
new h, m, s;
gettime(h,m,s);
if(h == tempo+1 || h == 23)
{
//FUNЗХES DO PAYDAY AQUI
}
else
{
tempo = h;
}
return 1;
}