pawn Код:
if(strcmp(cmd, "/organizacoes", true) == 0 || strcmp(cmd, "/orgs", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_DBLUE,"_______________________________________");
SendClientMessage(playerid, COR_POLICIA, "Policia Militar (LS) - [ID-1]");
SendClientMessage(playerid, COR_POLICIA, "R.O.T.A - [ID-2]");
SendClientMessage(playerid, COR_POLICIA, "Policia Militar (LV)- [ID-3]");
SendClientMessage(playerid, COR_POLICIA, "Policia Civil - [ID-4]");
SendClientMessage(playerid, COR_EXERCITO, "Exercito - [ID-5]");
SendClientMessage(playerid, COR_ALQAEDA, "Al'Qaeda - [ID-6]");
SendClientMessage(playerid, COR_ASFARC, "F.A.R.C - [ID-7]");
SendClientMessage(playerid, COR_AZTECAS, "Varrios Los Aztecas - [ID-8]");
SendClientMessage(playerid, COR_GROOVE, "Groove Street - [ID-9]");
SendClientMessage(playerid, COR_VAGOS, "Los Santos Vagos - [ID-10]");
SendClientMessage(playerid, COR_BALLAS, "Ballas - [ID-11]");
SendClientMessage(playerid, COR_MAIORAIS, "Os Maiorais - [ID-12]");
SendClientMessage(playerid, COR_SAMU, "S.A.M.U (LS) - [ID-13]");
SendClientMessage(playerid, COR_SAMU, "S.A.M.U (LV) - [ID-14]");
SendClientMessage(playerid, COR_NEWS, "Los Santos News - [ID-15]");
SendClientMessage(playerid, COR_NEWS, "Las Venturas News - [ID-16]");
SendClientMessage(playerid, COR_NEWS, "San Andreas News - [ID-17]");
SendClientMessage(playerid, COR_ASSASSINOS, "Agencia dos Assassinos - [ID-18]");
SendClientMessage(playerid, COR_POLICIA, "Policia Federal - [ID-19]");
SendClientMessage(playerid, COR_INSTRUTOR, "Instrutor - [ID-20]");
SendClientMessage(playerid, COR_TAXI, "Taxista (LS) - [ID-21]");
SendClientMessage(playerid, COR_TAXI, "Taxista (LV) - [ID-22]");
SendClientMessage(playerid, COR_STRACCI, "Familia Stracci - [ID-23]");
SendClientMessage(playerid, COR_BARZINI, "Familia Barzini [ID-24]");
SendClientMessage(playerid, COR_TATTAGLIAS, "Familia Tattaglias [ID-25]");
SendClientMessage(playerid, COR_CUNEO, "Familia Cuneo [ID-26]");
SendClientMessage(playerid, COR_CORLEONE, "Familia Corleone [ID-27]");
SendClientMessage(playerid, COR_GOVERNO, "Camara Municipal (LS) [ID-28]");
SendClientMessage(playerid, COR_GOVERNO, "Camara Municipal (LV) [ID-29]");
SendClientMessage(playerid, COR_GOVERNO, "Governo San Andreas [ID-30]");
SendClientMessage(playerid, COLOR_DBLUE,"_______________________________________");
}
return 1;
}
E se puderem, DIALOG_STYLE_MSGBOX..
pawn Код:
if(strcmp(cmd, "/organizacoes", true) == 0 || strcmp(cmd, "/orgs", true) == 0)
{
new string[128], odialog[1000];
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][Lider] == 1) // Nгo sei como й a variбvel no seu GM, mas o normal й PlayerInfo...
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Policia Militar (LS) (ID:1) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 2)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "R.O.T.A (ID:2) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 3) // Nгo sei como й a variбvel no seu GM, mas o normal й PlayerInfo...
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Policia Militar (LV) (ID:3) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 4)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Policia Civil (ID:4) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 5) // Nгo sei como й a variбvel no seu GM, mas o normal й PlayerInfo...
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Exercito (ID:5) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 6)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Al'Qaeda (ID:6) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 7) // Nгo sei como й a variбvel no seu GM, mas o normal й PlayerInfo...
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "F.A.R.C (ID:7) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 8)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Varrio Los Aztecas (ID:8) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 9) // Nгo sei como й a variбvel no seu GM, mas o normal й PlayerInfo...
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Groove Street (ID:9) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 10)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Los Santos Vagos (ID:10) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 11) // Nгo sei como й a variбvel no seu GM, mas o normal й PlayerInfo...
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Ballas (ID:11) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 12)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Os maiorais (ID:12) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 13) // Nгo sei como й a variбvel no seu GM, mas o normal й PlayerInfo...
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "S.A.M.U (LS) (ID:13) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 14)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "S.A.M.U (LV) (ID:14) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 15) // Nгo sei como й a variбvel no seu GM, mas o normal й PlayerInfo...
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Los Santos News (ID:15) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 16)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Las Venturas News (ID:16) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 17) // Nгo sei como й a variбvel no seu GM, mas o normal й PlayerInfo...
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "San Andreas News (ID:17) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 18)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Agencia dos Assassinos (ID:18) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 19)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Policia Federal (LV) (ID:19) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 20) // Nгo sei como й a variбvel no seu GM, mas o normal й PlayerInfo...
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Instrutor (ID:20) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 21)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Taxista (LS) (ID:21) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 22) // Nгo sei como й a variбvel no seu GM, mas o normal й PlayerInfo...
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Taxista (LV) (ID:22) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 23)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Familia Stracci (ID:23) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 24)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Familia Barzini (ID:24) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 25) // Nгo sei como й a variбvel no seu GM, mas o normal й PlayerInfo...
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Familia Tattaglias (ID:25) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 26)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Familia Cuneo (ID:26) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 27) // Nгo sei como й a variбvel no seu GM, mas o normal й PlayerInfo...
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Familia Corleone (ID:27) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 28)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Camara Municipal (LS) (ID:28) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
if(PlayerInfo[i][Lider] == 29) // Nгo sei como й a variбvel no seu GM, mas o normal й PlayerInfo...
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Camara Municipal (LV) (ID:29) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
else if(PlayerInfo[i][Lider] == 30)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string, sizeof(string), "Governo San Andreas (ID:30) | Lider: %s[ID:%d]", sendername, i);
strcat(odialog,string);
}
ShowPlayerDialog(playerid,2563,DIALOG_STYLE_MSGBOX,"Organizaзхes & Lideres",odialog,"FECHAR","");
}
}
return 1;
}