jou988
Дебютант
Проблема с рестартом и авторестартом,когда пишу.команду /restart пишет что перезагрузка,и выключается как исправить или убрать авторестарт ??Что скинуть ?
---------- Сообщение добавлено в 16:36 ---------- Предыдущее сообщение добавлено в 16:09 ----------
---------- Сообщение добавлено в 16:36 ---------- Предыдущее сообщение добавлено в 16:09 ----------
PHP:
[/COLOR]}
if(strcmp(cmd, "/restart", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 10)
{
if(dostup[playerid] != 1) return ShowPlayerDialog(playerid,2934,DIALOG_STYLE_INPUT, "{990000}Aaoi?ecaoey", "{ffffff}Aaaaeoa aaiei-ia?ieu", "Aaoi?ecaoey", "Ioiaia");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_LIGHTRED, "I?ienoiaeo ia?acaa?ocea na?aa?a , i?eiinei naie ecaeiaiey.");
SendClientMessageToAll(COLOR_LIGHTRED, "C oaa?aieai aaiei-eiiaiaa ComRise RP");
format(string, sizeof(string), "~r~RESTART");
for(new i = 0; i < MAX_PLAYERS; i++)
{
new txtid;
GameTextForPlayer(i, string, 5000, txtid);
}
printr("Server Restarting");
SaveAccounts();
SaveMaterials();
SaveGZ();
OnPropUpdate();
GameModeExitFunc();
format(string, sizeof(string), "~r~RESTART");
}
return true;
Последнее редактирование модератором:
