Szerző Téma: /stats - gondok.  (Megtekintve 351 alkalommal)

Nem elérhető The

  • 4384
    • Profil megtekintése
/stats - gondok.
« Dátum: 2012. Augusztus 15. - 22:26:17 »
0 Show voters
Sziasztok!
Miért nem ír ki mindent? Minden megvan csinálva elvileg.


 
                .....egyebek....
 
               new drank[20];
if(PlayerInfo[giveplayerid][pDonateRank] == 1) { drank = \"Bronze donater\"; }
else if(PlayerInfo[giveplayerid][pDonateRank] >= 2) { drank = \"Golden donater\"; }
else { drank = \"Nincs\"; }
/*new married[20];
strmid(married, PlayerInfo[giveplayerid][pMarriedTo], 0, strlen(PlayerInfo[giveplayerid][pMarriedTo]), 255);*/
new age = PlayerInfo[giveplayerid][pAge];
//new lotto = PlayerInfo[giveplayerid][pLottoNr];
//new deaths = PlayerInfo[giveplayerid][pDeaths];
//new fishes = PlayerInfo[giveplayerid][pFishes];
//new crimes = PlayerInfo[giveplayerid][pCrimes];
//new warrests = PlayerInfo[giveplayerid][pWantedDeaths];
new xp = PlayerInfo[giveplayerid][XP];
//new wanted = WantedLevel[giveplayerid];
new level = PlayerInfo[giveplayerid][pLevel];
//new kills = PlayerInfo[giveplayerid][pKills];
new pnumber = PlayerInfo[giveplayerid][pPnumber];
//new costlevel = nxtlevel*levelcost;//10k for testing purposes
new housekey = PlayerInfo[giveplayerid][pPhousekey];
//new bizkey = PlayerInfo[giveplayerid][pPbiskey];
new carkey = PlayerInfo[giveplayerid][pPcarkey];
//   new carkey2 = PlayerInfo[giveplayerid][pPcarkey2];
//new carkey3 = PlayerInfo[giveplayerid][pPcarkey3];
//new Float:shealth = PlayerInfo[giveplayerid][pSHealth];
new Float:health;
new name[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid, name, sizeof(name));
GetPlayerHealth(giveplayerid,health);
new Float:px,Float:py,Float:pz;
GetPlayerPos(giveplayerid, px, py, pz);
new coordsstring[256];
new jatszottora = PlayerInfo[giveplayerid][idoora];
        new jatszottperc = PlayerInfo[giveplayerid][idoperc];
        new jatszottmp = PlayerInfo[giveplayerid][idomp];
SendClientMessage(playerid, COLOR_YELLOW,\" \");
SendClientMessage(playerid, COLOR_RED,\"=======================================JELENLEGI STÁTUSZ=======================================\");
format(coordsstring, sizeof(coordsstring),\"{f7ff00}Neved: {003cff}%s\",name);
SendClientMessage(playerid, COLOR_RED,coordsstring);
format(coordsstring, sizeof(coordsstring),\"{f7ff00}Besorolás:{003cff} %d,{f7ff00} XP Pont: {003cff}%d {f7ff00}Nem: {003cff}%s,{f7ff00} Életkor:{003cff} %d, {f7ff00}Kézpénz: {003cff}%d$, {f7ff00}Egyenleg: {003cff}%d$, {f7ff00}Telefonszám: {003cff}%d\",level,xp,atext,age,PlayerInfo[playerid][Penz],PlayerInfo[playerid][bankPenz],pnumber);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
if(jatszottora >= 10 && jatszottperc >= 10 && jatszottmp >= 10)
    {
       format(stringx, sizeof(stringx), \"{f7ff00}Játszott órák: {ff0000}%d:%d:%d,{f7ff00} Munka:{ff0000} %s, {f7ff00}Fõnökös Munka: {ff0000}%s, {f7ff00}Rang: {ff0000}%s \",jatszottora, jatszottperc, jatszottmp,jtext,ftext,rtext);
       SendClientMessage(playerid, COLOR_GRAD1, stringx);
    }
    else if(jatszottora < 10 && jatszottperc >= 10 && jatszottmp >= 10)
    {
       format(stringx, sizeof(stringx), \"{f7ff00}Játszott órák: {ff0000}%d:%d:%d,{f7ff00} Munka:{ff0000} %s, {f7ff00}Fõnökös Munka: {ff0000}%s, {f7ff00}Rang: {ff0000}%s \",jatszottora, jatszottperc, jatszottmp,jtext,ftext,rtext);
       SendClientMessage(playerid, COLOR_GRAD1, stringx);
    }
    else if(jatszottora < 10 && jatszottperc < 10 && jatszottmp >= 10)
    {
       format(stringx, sizeof(stringx), \"{f7ff00}Játszott órák: {ff0000}%d:%d:%d,{f7ff00} Munka:{ff0000} %s, {f7ff00}Fõnökös Munka: {ff0000}%s, {f7ff00}Rang: {ff0000}%s \",jatszottora, jatszottperc, jatszottmp,jtext,ftext,rtext);
       SendClientMessage(playerid, COLOR_GRAD1, stringx);
    }
    else if(jatszottora < 10 && jatszottperc < 10 && jatszottmp < 10)
    {
       format(stringx, sizeof(stringx), \"{f7ff00}Játszott órák: {ff0000}%d:%d:%d,{f7ff00} Munka:{ff0000} %s, {f7ff00}Fõnökös Munka: {ff0000}%s, {f7ff00}Rang: {ff0000}%s \",jatszottora, jatszottperc, jatszottmp,jtext,ftext,rtext);
       SendClientMessage(playerid, COLOR_GRAD1, stringx);
    }
    else if(jatszottora >= 10 && jatszottperc < 10 && jatszottmp < 10)
    {
       format(stringx, sizeof(stringx), \"{f7ff00}Játszott órák: {ff0000}%d:%d:%d,{f7ff00} Munka:{ff0000} %s, {f7ff00}Fõnökös Munka: {ff0000}%s, {f7ff00}Rang: {ff0000}%s  \",jatszottora, jatszottperc, jatszottmp,jtext,ftext,rtext);
       SendClientMessage(playerid, COLOR_GRAD1, stringx);
    }
    else if(jatszottora >= 10 && jatszottperc >= 10 && jatszottmp < 10)
    {
       format(stringx, sizeof(stringx), \"{f7ff00}Játszott órák: {ff0000}%d:%d:%d,{f7ff00} Munka:{ff0000} %s, {f7ff00}Fõnökös Munka: {ff0000}%s, {f7ff00}Rang: {ff0000}%s \",jatszottora, jatszottperc, jatszottmp,jtext,ftext,rtext);
       SendClientMessage(playerid, COLOR_GRAD1, stringx);
    }
    else if(jatszottora >= 10 && jatszottperc < 10 && jatszottmp >= 10)
    {
       format(stringx, sizeof(stringx), \"{f7ff00}Játszott órák: {ff0000}%d:%d:%d,{f7ff00} Munka:{ff0000} %s, {f7ff00}Fõnökös Munka: {ff0000}%s, {f7ff00}Rang: {ff0000}%s \",jatszottora, jatszottperc, jatszottmp,jtext,ftext,rtext);
       SendClientMessage(playerid, COLOR_GRAD1, stringx);
    }
    else if(jatszottora < 10 && jatszottperc >= 10 && jatszottmp < 10)
    {
       format(stringx, sizeof(stringx), \"{f7ff00}Játszott órák: {ff0000}%d:%d:%d,{f7ff00} Munka:{ff0000} %s, {f7ff00}Fõnökös Munka: {ff0000}%s, {f7ff00}Rang: {ff0000}%s  \",jatszottora, jatszottperc, jatszottmp,jtext,ftext,rtext);
       SendClientMessage(playerid, COLOR_GRAD1, stringx);
    }
    else if(jatszottora < 10 && jatszottperc >= 10 && jatszottmp >= 10)
    {
       format(stringx, sizeof(stringx), \"{f7ff00}Játszott órák: {ff0000}%d:%d:%d,{f7ff00} Munka:{ff0000} %s, {f7ff00}Fõnökös Munka: {ff0000}%s, {f7ff00}Rang: {ff0000}%s \",jatszottora, jatszottperc, jatszottmp,jtext,ftext,rtext);
       SendClientMessage(playerid, COLOR_GRAD1, stringx);
    }
    format(coordsstring, sizeof(coordsstring), \"{f7ff00}Szervezet: %s, {f7ff00}Szervezet Rang: {ff0000}%s, {f7ff00}Figyelmeztetések:{ff0000} %d,{f7ff00} Bírság:{ff0000} %d$\",bandatext,bandarangtext,PlayerInfo[playerid][pWarns]-1,PlayerInfo[playerid][Csekk]);
SendClientMessage(playerid, COLOR_GREY,coordsstring);
if(carkey == 999 && housekey == 255 && PlayerInfo[playerid][kolcsonkocsikulcs] == 0)
    {
        format(coordsstring, sizeof(coordsstring), \"{f7ff00}Házkulcs: {ff0000}Nincs,{f7ff00} Kocsikulcs:{ff0000}  Nincs, {f7ff00}Kölcsönkocsi: {ff0000} Nincs\", housekey,PlayerInfo[playerid][kolcsonkocsikulcs]);
SendClientMessage(playerid, COLOR_GREY,coordsstring);
}
else if(carkey < 999 && housekey == 255 && PlayerInfo[playerid][kolcsonkocsikulcs] > 0)
    {
    format(coordsstring, sizeof(coordsstring), \"{f7ff00}Házkulcs: {ff0000}Nincs,{f7ff00} Kocsikulcs:{ff0000}  %d, {f7ff00}Kölcsönkocsi: {ff0000} %d\",carkey,PlayerInfo[playerid][kolcsonkocsikulcs]);
SendClientMessage(playerid, COLOR_GREY,coordsstring);
    }
    else if(carkey == 999 && housekey < 255 && PlayerInfo[playerid][kolcsonkocsikulcs] > 0)
    {
    format(coordsstring, sizeof(coordsstring), \"{f7ff00}Házkulcs: {ff0000}%d,{f7ff00} Kocsikulcs:{ff0000}  Nincs, {f7ff00}Kölcsönkocsi: {ff0000} %d\", housekey,PlayerInfo[playerid][kolcsonkocsikulcs]);
SendClientMessage(playerid, COLOR_GREY,coordsstring);
    }
    else if(carkey < 999 || housekey < 255 || PlayerInfo[playerid][kolcsonkocsikulcs] > 0)
    {
    format(coordsstring, sizeof(coordsstring), \"{f7ff00}Házkulcs: {ff0000}%d,{f7ff00} Kocsikulcs:{ff0000}  %d, {f7ff00}Kölcsönkocsi: {ff0000} %d\", housekey,carkey,PlayerInfo[playerid][kolcsonkocsikulcs]);
SendClientMessage(playerid, COLOR_GREY,coordsstring);
    }
SendClientMessage(playerid, COLOR_RED,\"=======================================JELENLEGI STÁTUSZ=======================================\");
      }
      else
      {
         SendClientMessage(playerid, COLOR_GRAD2, \"Játékos nem elérhetõ!\");
      }
   }
   else
   {
      SendClientMessage(playerid, COLOR_GRAD2, \"Nem vagy admin!\");
   }
}
return 1;
}

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal