02.02.2017, 12:46
(
Последний раз редактировалось didimk157; 02.02.2017 в 13:33.
)
help me put this code here to put it to store players with these varaives ai mode of game faction admins, leaders, owner of the hill, front, manager, steam and bonfire everything off line ...
PHP код:
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","");
}
}
}