13.11.2014, 14:17
Hola. Prueba con йsto:
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);
SendRconCommand("unloadfs skinchanger");
SendRconCommand("unloadfs vspawner");
SendRconCommand("unloadfs attachments");
SendRconCommand("unloadfs mapeos");
SendRconCommand("unloadfs armedbody");
SendRconCommand("unloadfs gl_realtime");
SendRconCommand("unloadfs ls_mall");
SendRconCommand("unloadfs ls_elevator");
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");
SendRconCommand("loadfs skinchanger");//o ponlos en ongamemodeinit pero tendrнas que quitarlos de server.cfg
SendRconCommand("loadfs vspawner");
SendRconCommand("loadfs attachments");
SendRconCommand("loadfs mapeos");
SendRconCommand("loadfs armedbody");
SendRconCommand("loadfs gl_realtime");
SendRconCommand("loadfs ls_mall");
SendRconCommand("loadfs ls_elevator");
}
}
return 1;
}