[Ajuda] clima
#8

pawn Код:
new M[3];
forward MudarHorario();//topo

SetTimer("MudarHorario",1000,true); //OnGameModeInit

public MudarHorario(){//final do gm
    gettime(M[0],M[1], M[2]);
    if(M[0] >= 8 && M[0] <= 16) return SetWorldTime(12);
    if(M[0] >= 17 && M[0] <= 18) return SetWorldTime(20);
    if(M[0] >= 19 && M[0] <= 7) return SetWorldTime(0);
    return 1;
}
Reply


Messages In This Thread
clima - by Cromado - 12.06.2013, 13:40
Re: clima - by Delete_ - 12.06.2013, 15:17
Re: clima - by Cromado - 12.06.2013, 16:03
Re: clima - by -GooGle- - 12.06.2013, 16:32
Re: clima - by Cromado - 12.06.2013, 16:41
Re: clima - by -GooGle- - 12.06.2013, 16:50
Re: clima - by Cromado - 12.06.2013, 17:03
Re: clima - by -GooGle- - 12.06.2013, 17:10
Re: clima - by Cromado - 12.06.2013, 20:08
Re: clima - by -GooGle- - 12.06.2013, 20:18

Forum Jump:


Users browsing this thread: 3 Guest(s)