26.12.2013, 20:16
pawn Код:
dcmd_orgs(playerid, params[])
{
#pragma unused params
new org[128],org2[128],string[2048],tmp[32],giveid;
for(new i = 1; i < MAX_ORGS; ++i)
{
format(org,128,"/RPG/orgs/%s.ini",OrgsNamesSmall[i]);
format(tmp,32,"%s",dini_Get(org, OrgsCargos[0]));
if(strlen(tmp) < 3)
tmp = "Ninguйm";
giveid = ReturnUser(tmp);
format(org2,128,"{C2A2DA} %d >> %s: %s - %s\n", i, OrgsNames[i], tmp, IsPlayerConnected(giveid) ? ("{00D900}Online") : ("{AA3333}Offline"));
strcat(string, org2, 2048);
}
ShowPlayerDialog(playerid, 10000, DIALOG_STYLE_MSGBOX, "Organizaзхes", string, "Fechar", "");
return 1;
}