SA-MP Forums Archive
[AJUDA] Gmx nгo esta salvando - 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] Gmx nгo esta salvando (/showthread.php?tid=349438)



[AJUDA] Gmx nгo esta salvando - Chis - 09.06.2012

pawn Код:
CMD:gmx(playerid, params[])
{
    SendRconCommand("gmx");
    DOF2_SaveFile();
    return 1;
}



Re: [AJUDA] Gmx nгo esta salvando - Dolby - 09.06.2012

pawn Код:
CMD:gmx(playerid, params[])
{
    DOF2_SaveFile();
    SendRconCommand("gmx");
    return 1;
}
Tente assim ^^.


Respuesta: [AJUDA] Gmx nгo esta salvando - Chis - 09.06.2012

Estava dessa forma, tipo ele salva alguma coisas, mais a skin, e as coordenadas nгo salva


Re: [AJUDA] Gmx nгo esta salvando - Dolby - 09.06.2012

entгo tenta temporizaзгo.


Re: [AJUDA] Gmx nгo esta salvando - Vitor_Marfioso - 09.06.2012

Й porque vocк atualizou em cima da hora, algumas coisas muito recentes ao GMX nгo sгo salvas mesmo.


Respuesta: [AJUDA] Gmx nгo esta salvando - Chis - 09.06.2012

como assim temporizaзгo?


Re: [AJUDA] Gmx nгo esta salvando - Dolby - 09.06.2012

Isto


Respuesta: [AJUDA] Gmx nгo esta salvando - Chis - 09.06.2012

fiz assim mesmo assim da a mesma coisa
pawn Код:
CMD:gmx(playerid, params[])
{
    DOF2_SaveFile();
    SetTimer("TimerGmx", 5000, false);
    return 1;
}

public TimerGmx()
{
    SendRconCommand("gmx");
}
Dъvida, qual й aquela outra funзгo que da o GMX?


Re: [AJUDA] Gmx nгo esta salvando - Vitor_Marfioso - 09.06.2012

Faz assim:
No topo do GM:
pawn Код:
forward GameModeInitExitFunc();
pawn Код:
CMD:gmx (playerid, params[])
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdminBPC] <= 1)
            {
            SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo tem autorizaзгo para acessar estб бrea!");
            return 1;
        }
        if(modoadmin[playerid] < 1)
        {
        SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб em modo de trabalho!");
        return 1;
        }
        GameModeInitExitFunc();
        }
No final do GM
pawn Код:
public GameModeInitExitFunc()
{
    new string[128];
    SendClientMessageToAll(COLOR_DBLUE, "{FFFFFF}[{A83B3C}PROGRAMADOR{FFFFFF}]: Isto й um {D90B0E}GMX{FFFFFF} nгo saia do servidor.");
    format(string, sizeof(string), "Atualizando...");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            DisablePlayerCheckpoint(i);
            gPlayerCheckpointStatus[i] = CHECKPOINT_NONE;
            GameTextForPlayer(i, string, 4000, 5);
            SetPlayerCameraPos(i,1460.0, -1324.0, 287.2);
            SetPlayerCameraLookAt(i,1374.5, -1291.1, 239.0);
            gPlayerLogged[i] = 0;
        }
    }
    SetTimer("GameModeExitFunc", 4000, 0);
    return 1;
}

public GameModeExitFunc()
{
    KillTimer(weaponhacktimer);
    KillTimer(TempoAnGang);
    KillTimer(TempoAnFarc);
    KillTimer(TempoAnTaxi);
    KillTimer(TempoAnHitmans);
    KillTimer(TempoAnMedicos);
    KillTimer(synctimer);
    KillTimer(newmistimer);
    KillTimer(unjailtimer);
    KillTimer(othtimer);
    KillTimer(cartimer);
    KillTimer(accountstimer);
    KillTimer(checkgastimer);
    KillTimer(idletimer);
    KillTimer(pickuptimer);
    KillTimer(productiontimer);
    KillTimer(spectatetimer);
    KillTimer(stoppedvehtimer);
    KillTimer(tempoGranaTR);
    GameModeExit();
}