if(dialogid == 9999)
{
new String[128], info[400];
if(response)
{
if(listitem == 0)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(Player[i][Admin] > 0 && Player[i][Faccoes] == Player[playerid][Faccoes])
{
format(String, sizeof(String), "{1D4FC4}» {ffffff}[Admin]%s\n", Nome(i));
strcat(info, String);
}
}
strcat(info, " ");
ShowPlayerDialog(playerid, D_HQ, DIALOG_STYLE_LIST,"{1D4FC4}» {ffffff}Administradores da Comunidade", info,"Ok","");
}
if(listitem == 1)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(Player[i][Lider] > 0 && Player[i][Faccoes] == Player[playerid][Faccoes])
{
format(String, sizeof(String), "{1D4FC4}» {ffffff}[Lider]%s\n", Nome(i));
strcat(info, String);
}
}
strcat(info, " ");
ShowPlayerDialog(playerid, D_HQ, DIALOG_STYLE_LIST,"{1D4FC4}» {ffffff}Lider da comunidade", info,"Ok","");
}
if(listitem == 2)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(Player[i][Dono] > 0 && Player[i][Faccoes] == Player[playerid][Faccoes])
{
format(String, sizeof(String), "{1D4FC4}» {ffffff}[Dono]%s\n", Nome(i));
strcat(info, String);
}
}
strcat(info, " ");
ShowPlayerDialog(playerid, D_HQ, DIALOG_STYLE_LIST,"{1D4FC4}» {ffffff}Dono do Morro", info,"Ok","");
}
if(listitem == 3)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(Player[playerid][Cargo]==4 && Player[i][Faccoes] == Player[playerid][Faccoes])
{
format(String, sizeof(String), "{1D4FC4}» {ffffff}[Frente]%s\n", Nome(i));
strcat(info, String);
}
}
strcat(info, " ");
ShowPlayerDialog(playerid, D_HQ, DIALOG_STYLE_LIST,"{1D4FC4}» {ffffff}Frentes da Comunidade", info,"Ok","");
}
if(listitem == 4)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(Player[playerid][Cargo]==3 && Player[i][Faccoes] == Player[playerid][Faccoes])
{
format(String, sizeof(String), "{1D4FC4}» {ffffff}[Gerente]%s\n", Nome(i));
strcat(info, String);
}
}
strcat(info, " ");
ShowPlayerDialog(playerid, D_HQ, DIALOG_STYLE_LIST,"{1D4FC4}» {ffffff}Gerentes da Comunidade", info,"Ok","");
}
if(listitem == 5)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(Player[playerid][Cargo]==2 && Player[i][Faccoes] == Player[playerid][Faccoes])
{
format(String, sizeof(String), "{1D4FC4}» {ffffff}[Vapor]%s\n", Nome(i));
strcat(info, String);
}
}
strcat(info, " ");
ShowPlayerDialog(playerid, D_HQ, DIALOG_STYLE_LIST,"{1D4FC4}» {ffffff}Vapores da Comunidade", info,"Ok","");
}
if(listitem == 6)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(Player[playerid][Cargo]==1 && Player[i][Faccoes] == Player[playerid][Faccoes])
{
format(String, sizeof(String), "{1D4FC4}» {ffffff}[Fogueteiro]%s\n", Nome(i));
strcat(info, String);
}
}
strcat(info, " ");
ShowPlayerDialog(playerid, D_HQ, DIALOG_STYLE_LIST,"{1D4FC4}» {ffffff}Fogueteiros da Comunidade", info,"Ok","");
}
}
}
This is scripting help, not script for you.
If you need a scripter, you should hit up the "Looking for Scripters/Helpers" thread, otherwise, you need to learn to script. |