27.03.2012, 17:22
Quote:
Pra nгo criar outro tipocio , como funcionaria para envez de 30 Minutos a cada 1 Hora?
Vlws... |
PHP код:
//by rjjj
//No OnGameModeInit:
SetTimer("PagDia", 1000, true);
//No Final do GM:
forward PagDia();
public PagDia()
{
new Horario[3];
gettime(Horario[0], Horario[1], Horario[2]);
if(Horario[1] == 0 && Horario[2] == 0)
{
for(new x = 0, y = GetMaxPlayers(); x != y; x++)
{
if(!IsPlayerConnected(x)) continue;
SendClientMessage(x, COR_PRETO, " ____________________________");
GivePlayerMoney(x, 250);
SendClientMessage(x, servidor, " Recebes-te 250 do {FF2EE0}Governo.");
SendClientMessage(x, COR_PRETO, " ____________________________");
}
}
return true;
}