[AJUDA] Gamemode
#4

tente usar,
pawn Код:
//Topo
new bool:StatusHora;

//gamemodeinit
SetTimer("Tempo",3000,true);


//fim do gm
forward Tempo();
public Tempo()
{
    if(StatusHora)
    {
        new Horas,Minutos,Segundos;
        gettime(Horas,Minutos,Segundos);
        SetWorldTime(Horas);
    }
    return 1;
}

//OnPlayerCommandText

if(!strcmp("/statushora",cmdtext))
{
    if(StatusHora)
    {
        StatusHora = false;
        SendClientMessage(playerid,-1,"Mudanзa de tempo automбtica desativada.");
    }
    else
    {
        StatusHora = true;
        SendClientMessage(playerid,-1,"Mudanзa de tempo automбtica ativada.");
    }
    return 1;
}
by: Viniborn
Reply


Messages In This Thread
[AJUDA] Gamemode - by GuiihCamargo - 08.03.2012, 23:59
Re: [AJUDA] Gamemode - by Guerra1 - 09.03.2012, 00:19
Re: [AJUDA] Gamemode - by Đeagle - 09.03.2012, 00:23
Re: [AJUDA] Gamemode - by _Jizzy_ - 09.03.2012, 00:25
Re: [AJUDA] Gamemode - by GuiihCamargo - 09.03.2012, 00:26
Re: [AJUDA] Gamemode - by Đeagle - 09.03.2012, 00:32
Re: [AJUDA] Gamemode - by GuiihCamargo - 09.03.2012, 00:36
Re: [AJUDA] Gamemode - by Đeagle - 09.03.2012, 00:53
Re: [AJUDA] Gamemode - by GuiihCamargo - 09.03.2012, 01:10
Re: [AJUDA] Gamemode - by Đeagle - 09.03.2012, 01:16

Forum Jump:


Users browsing this thread: 2 Guest(s)