03.05.2013, 14:41
Problema Enfrentado: Apуs GMX, Some os Lнderes Da Lista /Orgs
Comando /GMX:
Comando /Orgs:
Help?
Comando /GMX:
pawn Код:
if(strcmp(cmd, "/gmx", true) == 0 || strcmp(cmd, "/restart", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 3000)
{
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 3000) { return SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)"); }
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{ OnPlayerSave(i); }
ShowPlayerDialog(i, 156, DIALOG_STYLE_MSGBOX, "{FF8000}Servidor Reiniciando", "{00FF00}O servidor estб sendo Reiniciado(GMX).\n\n{8080FF}Nгo saia do Servidor!!!\n\n{FFFF00}Por Favor Aguarde...", "OK", "");
}
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string,sizeof(string), "AdmCmd: %s Reiniciou o servidor (GMX), AGUARDE!.",sendername);
SendClientMessageToAll(CORS, string);
format(string,sizeof(string), "Brasil {FFD700}New {1E90FF}City{FFFF00} Servidor reiniciando, Nгo saia do servidor!.");
SendClientMessageToAll(0x00FF00FF, string);
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerDialog(i, 156, DIALOG_STYLE_MSGBOX, "{FF8000}Servidor Reiniciando", "{00FF00}O servidor estб sendo Reiniciado(GMX).\n\n{8080FF}Nгo saia do Servidor!!!\n\n{FFFF00}Por Favor Aguarde...", "OK", "");
}
GameModeExitFunc();
}
else
{
pawn Код:
if (strcmp("/infolider", cmdtext, true, 10) == 0 || strcmp(cmd, "/orgs", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new DialogVinny[1500];
//SendClientMessage(playerid, 0xFF00FFAA, "[BNC] Lideres das Organizaзхes:");
format(string,sizeof(string), "{FF9000} 1 - {FFFFFF}Policia Militar:{FF9000} %s\n", InfoOrg[1][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 2 - {FFFFFF}ROTA:{FF9000} %s\n", InfoOrg[2][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 3 - {FFFFFF}Exйrcito:{FF9000} %s\n", InfoOrg[3][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 4 - {FFFFFF}Mйdicos:{FF9000} %s\n", InfoOrg[4][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 5 - {FFFFFF}Aztecas:{FF9000} %s\n", InfoOrg[5][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 6 - {FFFFFF}Taliban:{FF9000} %s\n", InfoOrg[6][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 7 - {FFFFFF}Prefeitura: {FF9000}%s\n", InfoOrg[7][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 8 - {FFFFFF}Hitmans:{FF9000} %s\n", InfoOrg[8][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 9 - {FFFFFF}Reporteres:{FF9000} %s\n", InfoOrg[9][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 10 - {FFFFFF}Taxistas:{FF9000} %s\n", InfoOrg[10][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 11 - {FFFFFF}Policia Federal:{FF9000} %s\n", InfoOrg[11][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 12 - {FFFFFF}Cosa Nostra:{FF9000} %s\n", InfoOrg[12][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 13 - {FFFFFF}Yakuza:{FF9000} %s\n", InfoOrg[13][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 14 - {FFFFFF}Groove:{FF9000} %s\n", InfoOrg[14][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 15 - {FFFFFF}Al'qaeda:{FF9000} %s\n", InfoOrg[15][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 16 - {FFFFFF}Polнcia Rodoviбria: {FF9000}%s\n", InfoOrg[16][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 17 - {FFFFFF}Ballas: {FF9000}%s\n", InfoOrg[17][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 18 - {FFFFFF}Vagos:{FF9000} %s\n", InfoOrg[18][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 19 - {FFFFFF}Comando Vermelho:{FF9000} %s\n", InfoOrg[19][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 20 - {FFFFFF}PCC: {FF9000}%s\n", InfoOrg[20][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 21 - {FFFFFF}Hells Angels:{FF9000} %s\n", InfoOrg[21][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 22 - {FFFFFF}Mongols:{FF9000} %s\n", InfoOrg[22][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 23 - {FFFFFF}Sons Of Anarchy:{FF9000} %s\n", InfoOrg[23][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 24 - {FFFFFF}Triads:{FF9000} %s\n", InfoOrg[24][Lider]);
strcat(DialogVinny,string);
format(string,sizeof(string), " 25 - {FFFFFF}Drifters:{FF9000} %s\n\n", InfoOrg[25][Lider]);
strcat(DialogVinny,string);
ShowPlayerDialog(playerid, 8723, DIALOG_STYLE_MSGBOX, "{00ECEC}Lнderes das Organizaзхes", DialogVinny, "Fechar", "");
}
return true;
}