20.04.2017, 01:03
BOM GALERA HOJE VIM AQUI PEDI AJUDA DE TODOS VCS QUE ESTA VISUALIZANDO ESSE TIPO,ESTOU TENTANDO CRIAR UM SISTEMA DE RANK E ESTOU QUEBRANDO A CABEЗA POR QUE NAO CONSIGO MONTA O CODIGO ALQUEM PODE ME AJUDAR PFV
PHP код:
public EnviarInfo()
{
new online, admins, VIPs, BOPEs, PMERJs, COREs, reporteres, procurados, presos;
new nFaccao, nrecorde, nMaiorScore, nplayers[65];
for(new i = 0; i <= HighestID; i++)
{
if(IsPlayerConnected(i))
{
online += 1;
if(Player[i][pVIP])
VIPs +=1;
if(Player[i][pAdmin])
admins +=1;
if(Player[i][pBOPE])
BOPEs += 1;
if(Player[i][pPMERJ])
PMERJs += 1;
if(Player[i][pCORE])
COREs += 1;
if(Player[i][pReporterLS])
reporteres += 1;
if(Player[i][pProcurado])
procurados += 1;
if(Player[i][pTempoPreso])
presos += 1;
if(Player[i][pFaccao] > 0 && Player[i][pFaccao] < 65)
nplayers[Player[i][pFaccao]] += 1;
TextDrawShowForPlayer(i, ServerLogo1);
TextDrawShowForPlayer(i, ServerLogo2);
TextDrawShowForPlayer(i, ServerLogo3);
}
}
for(new x = 0; x < 65; x ++)
{
if(nplayers[x] > nrecorde)
{
nrecorde = nplayers[x];
nFaccao = x;
}
}
DOF2_SetInt("Server_Info.ini", "Online", online);
DOF2_SetInt("Server_Info.ini", "Admins", admins);
DOF2_SetInt("Server_Info.ini", "VIPs", VIPs);
DOF2_SetInt("Server_Info.ini", "CORE_1DP", COREs);
DOF2_SetInt("Server_Info.ini", "BOPE_2BTL", BOPEs);
DOF2_SetInt("Server_Info.ini", "PMERJ_1BTL", PMERJs);
DOF2_SetInt("Server_Info.ini", "Reporteres", reporteres);
DOF2_SetInt("Server_Info.ini", "Procurados", procurados);
DOF2_SetInt("Server_Info.ini", "Presos", presos);
DOF2_SetInt("Server_Info.ini", "FaccaoID", nFaccao);
DOF2_SetInt("Server_Info.ini", "FaccaoOnline", nrecorde);
DOF2_SetInt("Server_Info.ini", "MaiorScore", nMaiorScore);
DOF2_SetInt("Server_Info.ini", "Kills", Server[Kills]);
DOF2_SetInt("Server_Info.ini", "Crashes", Server[Crashes]);
DOF2_SetInt("Server_Info.ini", "Kicks", Server[Kicks]);
DOF2_SetInt("Server_Info.ini", "Bans", Server[Bans]);
DOF2_SetInt("Server_Info.ini", "Logins", Server[Logins]);
DOF2_SaveFile();
SalvarDadosOrgsCops();
}
//==============================================================================//
public Top1()
{
new nMaiorScore, nrecorde, nplayers[MAX_FACCOES];
for(new i = 0; i <= HighestID; i++)
{
if(Player[i][pFaccoes] > 0 && Player[i][pFaccoes] < MAX_FACCOES)
nplayers[Player[i][pFaccoes]] += 1;
}
for(new x = 0; x < MAX_FACCOES; x ++)
{
if(nplayers[x] > nrecorde)
{
nrecorde = nplayers[x];
nMaiorScore = x;
}
}
SendFormattedMessageToAll(COR_CMD, "{CD2626}Top Rank » %s й o mas viciado do servidor, com %d de Level!",nMaiorScore, nFaccao, nrecorde);
}
//Nesse codigo eu queria por para verifica o play com maior score do servidor amostra o nome dele no anuncio ele online e off podem me ajuda pfv