[Ayuda] Con comando para reiniciar.
#1

Hola a todos , bueno serй breve, cree un comando para reiniciar mi servidor pero cuando lo uso los fs no recargan y solo se reinicia el gm sin los fs, les dejo los 2 timers del comando:

pawn Код:
public PreReinicio()
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    TogglePlayerControllable(i, false);
    GameTextForAll("Esperando reinicio...", 9000, 5);
    Logueado[i] = 1;
    }
    }
    SetTimer("ReiniciarServidor", 6000, false);
    return 1;
}

public ReiniciarServidor()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(Logueado[i] == 1)
    {
        GuardarDatos(i);
        GuardarArmas(i);
    }
    GameTextForAll("Reiniciando el servidor..", 10000,5);
    SendRconCommand("gmx");
        }
    }
    return 1;
}
Tambiйn probй poner esto en OnGameModeInit() pero se bugueaban los fs recargaba doble y algunas cosas ni cargaban.
pawn Код:
SendRconCommand("reloadfs skinchanger");
SendRconCommand("reloadfs vspawner");
SendRconCommand("reloadfs attachments");
SendRconCommand("reloadfs mapeos");
SendRconCommand("reloadfs armedbody");
SendRconCommand("reloadfs gl_realtime");
SendRconCommand("reloadfs ls_mall");
SendRconCommand("reloadfs ls_elevator");
Espero y me puedan ayudar, gracias de antemano y saludos
Reply


Messages In This Thread
[Ayuda] Con comando para reiniciar. - by JGomez97 - 13.11.2014, 03:19
Respuesta: [Ayuda] Con comando para reiniciar. - by jotajeda - 13.11.2014, 14:17

Forum Jump:


Users browsing this thread: 1 Guest(s)