[POMOC] Status u dialog

Započeo xZone, Januar 05, 2014, 15:36:07 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:geforce
Detaljan opis problema: moze li mi ko napravit ovo u dialog-u msgbox kao na coa ili u n i q kako cu vec objasnit ako treba slika slikat cu
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

ShowOOCStats(playerid,targetid)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
new drank[8];

if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "Bronze"; }
else if(PlayerInfo[targetid][pDonateRank] == 2) { drank = "Silver"; }
else if(PlayerInfo[targetid][pDonateRank] >= 3) { drank = "Gold"; }
else { drank = "Nista"; }


new ptime = GetPVarInt(targetid, "ConnectTime"),
    nxtlevel = PlayerInfo[targetid][pLevel]+1,
    expamount = nxtlevel*levelexp,
    housekey = PlayerInfo[targetid][pPhousekey],
    aptkey = PlayerInfo[targetid][pApartment],
    bizkey = PlayerInfo[targetid][pPbiskey],
    eventkey = PlayerInfo[targetid][pevkey],
    intir = PlayerInfo[targetid][pInt],
    local = PlayerInfo[targetid][pLocal],
    warns = PlayerInfo[targetid][pWarns],
    level = PlayerInfo[targetid][pLevel],
kills = PlayerInfo[targetid][pKills],
exp = PlayerInfo[targetid][pExp],
vehkey = GetPVarInt(targetid, "UsingCar"),
    Float:shealth = PlayerInfo[targetid][pSHealth],
    Float:health,
    name[MAX_PLAYER_NAME];

GetPlayerName(targetid, name, sizeof(name));
GetPlayerHealth(targetid,health);

new Float:px,
    Float:py,
            Float:pz;

GetPlayerPos(targetid, px, py, pz);

new coordsstring[128];

SendClientMessage(playerid, COLOR_SKYBLUE,"_________________________________________________");
format(coordsstring, sizeof(coordsstring),"*** %s ***",name);
SendClientMessage(playerid, COLOR_PINK,coordsstring);
format(coordsstring, sizeof(coordsstring), "Level:[%d] | Premium Account[%s] | Sati Igranja:[%d]", level,drank,ptime);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "Spawn Health:[%.1f] | Ubojstva:[%d] | Respekt:[%d/%d]", shealth+50, kills, exp,expamount );
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "Warnings: [%d/3] | Vrijeme do place: [%d minuta]",warns, (60-PlayerInfo[targetid][pPayDay]) );
SendClientMessage(playerid, COLOR_WHITE,coordsstring);

if (PlayerInfo[playerid][pAdmin] >= 1)
{
format(coordsstring, sizeof(coordsstring), "House key [%d] | Biz key [%d] | Apartment key [%d] | HireKey [%d]", housekey,bizkey,aptkey,GetPVarInt(targetid, "HireCar"));
SendClientMessage(playerid, COLOR_GRAD6,coordsstring);
format(coordsstring, sizeof(coordsstring), "Event key [%d] | int:[%d] | local[%d] | vehkey[%d]", eventkey,intir,local,vehkey);
SendClientMessage(playerid, COLOR_GRAD6,coordsstring);
}
SendClientMessage(playerid, COLOR_SKYBLUE,"_________________________________________________");
}
}


ShowICStats(playerid,targetid)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
new cash =  SafeGetPlayerMoney(targetid),
    atext[7];

if(PlayerInfo[targetid][pSex] == 1) { atext = "Musko"; }
else if(PlayerInfo[targetid][pSex] == 2) { atext = "Zensko"; }

  new otext[11];

if(PlayerInfo[targetid][pOrigin] == 1) { otext = "Los Santos"; }
else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "San Fierro"; }

new ttext[20];

if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "Doktor"; }
else if(gTeam[targetid] == 3 || gTeam[targetid] == 4) { ttext = "Civil"; }
else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1) { ttext = "Policajac"; }
else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2) { ttext = "FBI Agent"; }
else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { ttext = "Sheriff"; }
else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "EMS/Vatrogasci"; }
else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { ttext = "East Side Locos"; }
else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { ttext = "Sicilian Mafia"; }
else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7) { ttext = "Mayor"; }
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8) { ttext = "Hitmen"; }
else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9) { ttext = "News Reporter"; }
else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { ttext = "School Instructor"; }
else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14) { ttext = "Russian Mafia"; }
else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15) { ttext = "Grove Street"; }
else if(PlayerInfo[targetid][pMember] == 16 || PlayerInfo[targetid][pLeader] == 16) { ttext = "Street Racers"; }
else if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17) { ttext = "CBB"; }

new dtext[12];

if(GetPVarInt(targetid, "STDPlayer")  == 1) { dtext = "Chlamydia"; }
else if(GetPVarInt(targetid, "STDPlayer") == 2) { dtext = "Gonorrhea"; }
else if(GetPVarInt(targetid, "STDPlayer") == 3) { dtext = "Syphilis"; }
else { dtext = "None"; }

    new ftext[60];

    if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ftext = "EMS/Vatrogasci"; }
    else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { ftext = "SASD"; }
    else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1) { ftext = "LSPD"; }
    else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2) { ftext = "FBI"; }
    else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7) { ftext = "Mayor"; }
    else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9) { ftext = "Cable News Network"; }
    else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8) { ftext = "Hitman Company"; }
  else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { ftext = "East Side Locos"; }
else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { ftext = "Sicilian Mafia"; }
else if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17) { ftext = "CBB"; }
else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { ftext = "Licensers Faction"; }
else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14) { ftext = "Russian Mafia"; }
else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15) { ftext = "Grove Street"; }
else if(PlayerInfo[targetid][pMember] == 16 || PlayerInfo[targetid][pLeader] == 16) { ftext = "Street Racers"; }
else { ftext = "None"; }

    new rtext[128];

if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)//PD Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Vježbenik"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Kadet"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Policajac"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Viši policajac"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Narednik"; }
        else if(PlayerInfo[targetid][pRank] == 6) { rtext = "ViÅ¡i narednik"; }
        else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Poručnik"; }
        else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Nadporučnik"; }
        else if(PlayerInfo[targetid][pRank] == 9) { rtext = "Zamjenik načelnika"; }
        else if(PlayerInfo[targetid][pRank] == 10) { rtext = "Načelnik"; }
else { rtext = "Suspendiran"; }
}
else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)//FBI Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Professional Staff"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Special Agent Trainee"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Special Agent"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Special Agent in Charge"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Assistant Director in Charge"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Director"; }
else { rtext = "Intern"; }
}
else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3)//SASD Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "F.N.G."; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Deputy Sheriff"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Corporal"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Sergeant"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Lieutenant"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Captain"; }
    else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Under Sheriff"; }
    else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Sheriff"; }
else { rtext = "F.N.G."; }
}
else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)//NG Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Doktor"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Doktor"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Doktor"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Doktor"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Direktor Hitne"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Naučnik - Vatrogasac"; }
    else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Vatrogasac"; }
    else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Vatrogasac"; }
    else if(PlayerInfo[targetid][pRank] == 9) { rtext = "Vatrogasac"; }
    else if(PlayerInfo[targetid][pRank] == 10) { rtext = "Direktor vatrogasaca"; }
else { rtext = "Naučnik - Doktor"; }
}
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)//Hitman Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Freelancer"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Marksman"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Agent"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Special Agent"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Vice-Director"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Director"; }
else { rtext = "Freelancer"; }
}
else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9)//NR Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Intern"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Local Reporter"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Local Editor"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Network Anchor"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Network Editor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Network Producer"; }
else { rtext = "Intern"; }
}
else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)//Taxi Company Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Taxi Rookie"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Cabbie"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Dispatcher"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Shift Supervisor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Taxi Company Owner"; }
else { rtext = "Trainee"; }
}
else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14)//RM
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Dragoon"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Kapral"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Strelets"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Kapitan"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Polkovnik"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Voyevoda"; }
else { rtext = "Outsider"; }
}
else if(IsAnInstructor(targetid))//Driving/Flying School Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Instructor"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Senior Instructor"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Manager"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Under Boss"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Boss"; }
else { rtext = "Trainee"; }
}
else
{
    rtext = "None";
}

        new jtext[32];

        if(PlayerInfo[targetid][pJob] == 1) { jtext = "Detektiv"; }
        else if(PlayerInfo[targetid][pJob] == 2) { jtext = "Odvjetnik"; }
        else if(PlayerInfo[targetid][pJob] == 3) { jtext = "Prostitutka"; }
        else if(PlayerInfo[targetid][pJob] == 4) { jtext = "Diler Drogom"; }
        else if(PlayerInfo[targetid][pJob] == 5) { jtext = "Kradljivac Automobila"; }
        else if(PlayerInfo[targetid][pJob] == 6) { jtext = "News Reporter"; }
        else if(PlayerInfo[targetid][pJob] == 7) { jtext = "Mehanicar"; }
        else if(PlayerInfo[targetid][pJob] == 8) { jtext = "Tjelohranitelj"; }
        else if(PlayerInfo[targetid][pJob] == 9) { jtext = "Diler Oruzjem"; }
        else if(PlayerInfo[targetid][pJob] == 10) { jtext = "Trgovac Automobilima"; }
else if(PlayerInfo[targetid][pJob] == 12) { jtext = "Boksac"; }
        else if(PlayerInfo[targetid][pJob] == 14) { jtext = "Vozac Autobusa"; }
        else if(PlayerInfo[targetid][pJob] == 16) { jtext = "Kamiondzija(zbugano)"; }
        else if(PlayerInfo[targetid][pJob] == 21) { jtext = "Dostavljac Pizze"; }
        else if(PlayerInfo[targetid][pJob] == 25) { jtext = "Sladoledar"; }
        else if(PlayerInfo[targetid][pJob] == 26) { jtext = "Taksist"; }
        else if(PlayerInfo[targetid][pJob] == 27) { jtext = "Doktor"; }
        else if(PlayerInfo[targetid][pJob] == 28) { jtext = "Ribolovac"; }
        else if(PlayerInfo[targetid][pJob] == 50) { jtext = "Gradjevinar"; }
        else if(PlayerInfo[targetid][pJob] == 51) { jtext = "Poljoprivrednik"; }
        else if(PlayerInfo[targetid][pJob] == 52) { jtext = "Svercer materijala"; }
        else if(PlayerInfo[targetid][pJob] == 53) { jtext = "Cistac ulica"; }
        else if(PlayerInfo[targetid][pJob] == 54) { jtext = "Ilegalni farmer"; }
        else if(PlayerInfo[targetid][pJob] == 55) { jtext = "Svercer droge"; }
        else if(PlayerInfo[targetid][pJob] == 56) { jtext = "Kamiondzija"; }
        else if(PlayerInfo[targetid][pJob] == 57) { jtext = "Lopov"; }
        else if(PlayerInfo[targetid][pJob] == 58) { jtext = "Ilegalni prodavac"; }
        else if(PlayerInfo[targetid][pJob] == 59) { jtext = "Vlakovodja"; }
        else if(PlayerInfo[targetid][pJob] == 60) { jtext = "Sprunk Dostavljac"; }
        else if(PlayerInfo[targetid][pJob] == 61) { jtext = "Smetlar"; }
        else { jtext = "Nezaposlen"; }


new married[MAX_PLAYER_NAME];

strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);

new ctimeamount;

if(PlayerInfo[targetid][pDonateRank] > 0 && PlayerInfo[targetid][pJob] != 0) { ctimeamount = 1; }
else if(PlayerInfo[targetid][pDonateRank] == 0 && PlayerInfo[targetid][pJob] != 0) { ctimeamount = 5; }
else { ctimeamount = 0; }

new age = PlayerInfo[targetid][pAge],
    fishes = PlayerInfo[targetid][pFishes],
    bigfish = PlayerInfo[targetid][pBiggestFish],
    crimes = PlayerInfo[targetid][pCrimes],
    arrests = PlayerInfo[targetid][pArrested],
    warrests = PlayerInfo[targetid][pWantedDeaths],
    drugs = PlayerInfo[targetid][pDrugs],
    mats = PlayerInfo[targetid][pMats],
    pnumber = PlayerInfo[targetid][pPnumber],
    account = PlayerInfo[targetid][pAccount],
    ctime = PlayerInfo[targetid][pContractTime],
    name[MAX_PLAYER_NAME];

GetPlayerName(targetid, name, sizeof(name));

new Float:px,
    Float:py,
            Float:pz;

GetPlayerPos(targetid, px, py, pz);

new coordsstring[128];

SendClientMessage(playerid, COLOR_SKYBLUE,"__________________________________________________________________");
format(coordsstring, sizeof(coordsstring),"*** %s ***",name);
SendClientMessage(playerid, COLOR_PINK,coordsstring);
format(coordsstring, sizeof(coordsstring), "Spol:[%s] | Godina:[%d] | Grad:[%s] | Novac:[$%d] | Banka:[$%d]", atext,age,otext, cash, account);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "Broj Telefona:[%d] | Ozenjen Sa:[%s] | Posao:[%s] | Ugovor:[%d/%d]", pnumber,married,jtext,ctime,ctimeamount);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "Riba Uhvaceno:[%d] | Najveca Riba:[%d] | Zlocini:[%d] | Uhicen:[%d] | Trazen Mrtav:[%d]", fishes,bigfish,crimes,arrests,warrests );
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "Tim:[%s] | Bolest:[%s] | Organizacija:[%s] | Rank:[%s] ",ttext,dtext,ftext,rtext);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "Sirovine:[%d] | Materijali:[%d] | Iznos na radnoj knjizici: [$%d]",drugs,mats,PlayerInfo[targetid][pPayDayMoney]);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
SendClientMessage(playerid, COLOR_SKYBLUE,"___________________________________________________________________");
}
}