esse codigo й uma hierarquia para ver os administradores online e eu queria por ele of line em DOF2 se tiver como alguem me da uma luz de comeзo й que eu n sei usar dof2 em dialog ou em comando
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}%s\n", Nome(i));
strcat(info, String);
}
}
strcat(info, " ");
ShowPlayerDialog(playerid, D_HQ, DIALOG_STYLE_LIST,"{1D4FC4}» {ffffff}Administradores da Comunidade", info,"Ok","");
}
PHP код:
stock SalvarDados(playerid)
{
Player[playerid][Wanted] = GetPlayerWantedLevel(playerid);
getdate(AnoL[playerid], MesL[playerid], DiaL[playerid]);
gettime(HoraL[playerid], MinutoL[playerid]);
DOF2_SetInt(PegarConta(playerid), "Level", GetPlayerScore(playerid));
DOF2_SetInt(PegarConta(playerid), "Dinheiro", GetPlayerMoney(playerid));
DOF2_SetInt(PegarConta(playerid), "SkinAtual", GetPlayerSkin(playerid));
DOF2_SetInt(PegarConta(playerid), "LevelProcurado", Player[playerid][Procurado]);
DOF2_SetInt(PegarConta(playerid), "EstrelaProcurado", Player[playerid][Wanted]);
DOF2_SetInt(PegarConta(playerid), "suabatidos", Player[playerid][suabatidos]);
DOF2_SetInt(PegarConta(playerid), "AdminLevel", Player[playerid][Admin]);
DOF2_SetInt(PegarConta(playerid), "ReportsLidos", Player[playerid][pRpt]);
DOF2::SetInt(PegarConta(playerid), "Maconha", Player[playerid][Maconha]);
DOF2_SetInt(PegarConta(playerid), "Cocaina", Player[playerid][Cocaina]);
DOF2_SetInt(PegarConta(playerid), "BOPE", Player[playerid][BOPE]);
DOF2_SetInt(PegarConta(playerid), "PMRJ", Player[playerid][PMRJ]);
DOF2_SetInt(PegarConta(playerid), "CORE", Player[playerid][CORE]);
DOF2_SetInt(PegarConta(playerid), "Vip", Player[playerid][Vip]);
DOF2_SetInt(PegarConta(playerid), "Vip", Player[playerid][Vip]);
DOF2_SetInt(PegarConta(playerid), "Fogos", Player[playerid][Fogos]);
DOF2_SetInt(PegarConta(playerid), "Reporter", Player[playerid][Reporter]);
DOF2_SetInt(PegarConta(playerid), "Helper", Player[playerid][pHelper]);
DOF2_SetInt(PegarConta(playerid), "Atendimentos", Atendimentos[playerid]);
DOF2_SetInt(PegarConta(playerid), "Faccoes", Player[playerid][Faccoes]);
DOF2_SetInt(PegarConta(playerid), "Lider", Player[playerid][Lider]);
DOF2_SetInt(PegarConta(playerid), "Cargo", Player[playerid][Cargo]);
DOF2_SetInt(PegarConta(playerid), "Dono", Player[playerid][Dono]);
DOF2_SetInt(PegarConta(playerid), "CMD", Player[playerid][CMD]);
DOF2_SetInt(PegarConta(playerid), "LLL", Player[playerid][LLL]);
DOF2_SetInt(PegarConta(playerid), "TD3", Player[playerid][TD3]);
DOF2_SetInt(PegarConta(playerid), "MLC", Player[playerid][MLC]);
DOF2_SetInt(PegarConta(playerid), "Iniciante", Player[playerid][Iniciante]);
DOF2_SetInt(PegarConta(playerid), "Logou", Player[playerid][Logou]);
DOF2_SetInt(PegarConta(playerid), "DJ", Player[playerid][DJ]);
DOF2_SetInt(PegarConta(playerid), "Cash", Player[playerid][Cash]);
DOF2_SetInt(PegarConta(playerid), "Matou", Player[playerid][Matou]);
DOF2_SetInt(PegarConta(playerid), "Morreu", Player[playerid][Morreu]);
DOF2_SetInt(PegarConta(playerid), "TotalSUS", Player[playerid][sutotal]);
DOF2_SetInt(PegarConta(playerid), "TempoPreso", Player[playerid][TempoPreso]);
DOF2_SetInt(PegarConta(playerid), "PresoADM", PresoADM[playerid]);
DOF2_SetInt(PegarConta(playerid), "Presidio", Presidio[playerid]);
DOF2_SetInt(PegarConta(playerid),"TempoOnline", Player[playerid][pOnlineTime]);
DOF2::SetInt(PegarConta(playerid), "MinutoL", MinutoL[playerid]);
DOF2::SetInt(PegarConta(playerid), "HoraL", HoraL[playerid]);
DOF2::SetInt(PegarConta(playerid), "DiaL", DiaL[playerid]);
DOF2::SetInt(PegarConta(playerid), "MesL", MesL[playerid]);
DOF2::SetInt(PegarConta(playerid), "AnoL", AnoL[playerid]);
Bom, dei uma pesquisada na internet, e nгo achei conteъdo sobre DOF2, nгo conseguir descobrir se й possivel chamar arquivos pelas suas variantes como