01.06.2013, 00:46
pawn Code:
if(strcmp(cmd, "/gmx", true) == 0 || strcmp(cmd, "/restart", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] > 1337)
{
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1340 && PlayerInfo[playerid][pAdmin] != 1341 && PlayerInfo[playerid][pAdmin] != 1342) { return SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)"); }
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{ OnPlayerSave(i); }
new gmx[256];
format(gmx, sizeof(gmx),"\nO Admin: %s Reiniciou o Servidor\n{00FFFF}-> Isso й um GMX!\n{FFFF00}-> O GMX й reinicio do server\n{8A2BE2}-> Nгo saia o server irб voltar rapidamente!",PlayerName(playerid));
ShowPlayerDialog(i, 9000, DIALOG_STYLE_MSGBOX, "{FF0000}Servidor Reiniciando", gmx, "Ok", "");
format(string, sizeof(string), "~w~ GMX...");
if(IsPlayerConnected(i) == 1)
{
GameTextForPlayer(i, string, 5000, 6);
}
}
GameModeExitFunc();
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo tem autorizaзгo para dar GMX!");
}
}
return 1;
}
Porque quando da gmx ? as procura sobre pode me ajudar ?