Jump to content

[REZOLVAT] Salut


Cedry2k
 Share

Recommended Posts

Nu poti restarta server-ul fara sa dai afara jucatorii de pe el.

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

Adaugi comanda:

 

CMD:restartnone(playerid, params[])

{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
if(IsPlayerConnected(playerid))
{
    if (PlayerInfo[playerid][pAdmin] >= 6)
{
    ShowPlayerDialog(playerid, DIALOG_GMX, DIALOG_STYLE_MSGBOX, "Server Restart", "Please confirm whether you are positive that you wish to initiate a server restart?", "Yes", "No");
}
else return SendClientMessage(playerid, COLOR_LIGHTGREEN3, AdminOnly);
}
return 1;
}

Cauti:

SelFac[playerid] = 0;

 

si dupa ultimul 

 

}

adaugi:

 

 

if(dialogid == DIALOG_GMX)

{
if(response)
{
    SendClientMessageToAll(COLOR_YELLOW, "---- SERVER RESTART ----");
ABroadCast(COLOR_WHITE, "({804040}AdminStaff{FFFFFF}) Restarting timer activated.", 1);
SendClientMessageToAll(COLOR_RED2, "The server will be restarted in 10 seconds.");
    foreach(new x : Player)
{
Update(x, pPayDayx);
Update(x, pPayCheckx);
Update(x, pFpunishx);
Update(x, pBank);
Update(x, pCashx);
Update(x, pRP);
Update(x, pJailTimex);
Update(x, pLevelx);
}
iGMXTick = 10;
iGMXTimer = SetTimer("restartTimer", 1000, true);
new text1[128];
format(text1, sizeof(text1), "Admin %s initiated a server restart timer.", PlayerInfo[playerid][pNormalName]);
}
else if(!response)
{
    SendClientMessage(playerid, COLOR_GREY, "Restart attempt canned.");
}
return 1;
}

 

Link to comment
Share on other sites

si da restart la server fara sa dea kick? la jucatorii

Nu. E imposibil sa restartezi server-ul fara sa dai afara jucatorii de pe el.

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...