SA-MP Forums Archive
PayDay Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: PayDay Help (/showthread.php?tid=313687)



PayDay Help - 22Jack - 27.01.2012

hello there i make this thing for my script but i dont know how to make it work hour in hour (this is one of the jobs)
pawn Код:
public Up()
{
for(new i=0;i<MAX_PLAYERS;i++){
if(IsPlayerConnected(i)){
new aname[MAX_PLAYER_NAME];
GetPlayerName(i, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
new string[256];
if(dini_Int(file, "Profissao") == Desempregado){    // job
SendClientMessage(i,  0xC10000AA,"~~~~~~~~~~~~~~~~~~~~~~ Sбlario ~~~~~~~~~~~~~~~~~~~~~~");
SendClientMessage(i,  0xFFFFFFAA,"» Ministйrio do Trabalho:");
SendClientMessage(i,  0xFFFFFFAA,"Assistкncia financeira temporбria ao trabalhador desempregado!");
SendClientMessage(i,  0xFFFFFFAA,"Vocк recebeu 65,00 R$ do Seguro-Desemprego!");
SendClientMessage(i,  0xC10000AA,"~~~~~~~~~~~~~~~~~~~~~~ Sбlario ~~~~~~~~~~~~~~~~~~~~~~");
GivePlayerGrana(i, 65);
making get the money hour in hour