Jump to content

Question

Posted

cum fac sa fie comanda /stats cu dialog?

format(coordsstring, sizeof(coordsstring),"» %s's Stats", name);

SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);

format(coordsstring, sizeof(coordsstring), "» Level:[%d] Sex:[%s] Age:[%d] Spawn:[%s] SpawnHealth:[%.1f] Cash:[$%d] Bank:[$%d] PhoneNumber:[%d]", level,atext,age,otext,shealth+50, cash, account, pnumber);

SendClientMessage(playerid, COLOR_WHITE,coordsstring);

format(coordsstring, sizeof(coordsstring), "» DonateRank:[%s] MarriedTo:[%s] PlayingHours:[%d] LottoNr:[%d] Job:[%s] ", drank,married,ptime,lotto,jtext);

SendClientMessage(playerid, COLOR_WHITE,coordsstring);

format(coordsstring, sizeof(coordsstring), "» FishesCaught:[%d] BiggestFish:[%d] CrimesCommited:[%d] TimesArrested:[%d] WantedDeaths:[%d] Disease:[%s] ", fishes,bigfish,crimes,arrests,warrests,dtext);

SendClientMessage(playerid, COLOR_WHITE,coordsstring);

format(coordsstring, sizeof(coordsstring), "» Kills:[%d] Deaths:[%d] NextLevel:[$%d] Respect:[%d/%d] WantedLevel:[%d]", kills,deaths,costlevel,exp,expamount,wanted);

SendClientMessage(playerid, COLOR_WHITE,coordsstring);

format(coordsstring, sizeof(coordsstring), "» Drugs:[%d] Materials:[%d] Weed:[%d] Crack:[%d] Team:[%s] Organisation:[%s] Rank:[%s]", drugs,mats,weed,crack,ttext,ftext,rtext);

SendClientMessage(playerid, COLOR_WHITE,coordsstring);

format(coordsstring, sizeof(coordsstring), "» Warns:[%d/5] Faction Warns:[%d/3] AdminLevel:[%d] HelperLevel:[%d] Coins:[%d]", warns,pfwarn,adminl,helperl,coin);

SendClientMessage(playerid, COLOR_WHITE,coordsstring);

asta este comanda.ms anticipat

6 answers to this question

Recommended Posts

Posted

[pawn]#define DIALOG_STATS 32622//asta scri sus[/pawn]

[pawn]new string2[200];

        format(string2, sizeof(string2),"» Name: %s • Level: %d • Faction: %s • Rank: %s\n",name,plevel,ttext,rtext);

        format(coordsstring, sizeof(coordsstring), "» Sex: %s • Age: %d • SpawnHealth: %.1f • Cash: %s • Bank: %s • NumberPhone: %d\n", atext, age, shealth+50, FormatMoney(cash), FormatMoney(account), pnumber);

        strcat(string2,coordsstring);

        format(coordsstring, sizeof(coordsstring), "» DonateRank: %s • PlayingHours: %d • Respect: %d/%d • NumberLotto: %d\n", drank,ptime,exp,expamount,lotto);

        strcat(string2,coordsstring);

        format(coordsstring, sizeof(coordsstring), "» TimesArrested: %d • WantedLevel: %d • MarriedTo: %s • Disease: %s\n", arrests,wanted,married,dtext);

        strcat(string2,coordsstring);

        format(coordsstring, sizeof(coordsstring), "» Kills: %d • Deaths: %d • NextLevel: %d$ • Job: %s\n",kills,deaths,costlevel,jtext);

        strcat(string2,coordsstring);

        format(coordsstring, sizeof(coordsstring), "» FishesCaught: %d • BiggestFish: %d • Drugs: %d • Materials: %d • Pills: %d • Warns: %d\n",fishes,bigfish,drugs,mats,pills,warns);

        strcat(string2,coordsstring);

        ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"player stats",string2,"close","");[/pawn]

Incearca m-ai editezi tu

Cauti scripter / Mapper pentru servarul tau ? [email protected] [FREE SCRIPTING]

Posted

public ShowCars(playerid,targetid)

{

    if(IsPlayerConnected(playerid) && IsPlayerConnected(targetid))

{

new string[128];

            new carkey = PlayerInfo[targetid][pPcarkey];

    new carkey2 = PlayerInfo[targetid][pPcarkey2];

    new carkey3 = PlayerInfo[targetid][pPcarkey3];

            if (PlayerInfo[targetid][pPcarkey] != -1)

    {

        format(string, sizeof(string), "» Vehicul personal 1: VehID:%d • VehColor1:%d • VehColor2:%d • Model:%s", PlayerInfo[targetid][pPcarkey], CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cDescription]);

        SendClientMessage(targetid, 0x35F31AE4, string);

    }

    if (PlayerInfo[targetid][pPcarkey2] != -1)

    {

        format(string, sizeof(string), "» Vehicul personal 2: VehID:%d • VehColor1:%d • VehColor2:%d • Model:%s", PlayerInfo[targetid][pPcarkey2], CarInfo[carkey2][cColorOne], CarInfo[carkey2][cColorTwo], CarInfo[carkey2][cDescription]);

        SendClientMessage(targetid, 0x35F31AE4, string);//0x0480FBC8

    }

    if (PlayerInfo[targetid][pPcarkey3] != -1)

    {

        format(string, sizeof(string), "» Vehicul personal 3: VehID:%d • VehColor1:%d • VehColor2:%d • Model:%s", PlayerInfo[targetid][pPcarkey3], CarInfo[carkey3][cColorOne], CarInfo[carkey3][cColorTwo], CarInfo[carkey3][cDescription]);

        SendClientMessage(targetid, 0x35F31AE4, string);

    }

}

}

ASTA arata si la /stats pe langa alea de sus,cum fac sa arate si astea in dialog ?adica sa le fac dialog

Posted
public ShowCars(playerid,targetid)
   {
       if(IsPlayerConnected(playerid) && IsPlayerConnected(targetid))
      {
                  new string[128], string2[512];
                     new carkey = PlayerInfo[targetid][pPcarkey];
                   new carkey2 = PlayerInfo[targetid][pPcarkey2];
                   new carkey3 = PlayerInfo[targetid][pPcarkey3];
                     if (PlayerInfo[targetid][pPcarkey] != -1)
                   {
                       format(string, sizeof(string), "» Vehicul personal 1: VehID:%d • VehColor1:%d • VehColor2:%d • Model:%s", PlayerInfo[targetid][pPcarkey], CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cDescription]);
                       strcat(string2,string);
                   }
                   if (PlayerInfo[targetid][pPcarkey2] != -1)
                   {
                       format(string, sizeof(string), "» Vehicul personal 2: VehID:%d • VehColor1:%d • VehColor2:%d • Model:%s", PlayerInfo[targetid][pPcarkey2], CarInfo[carkey2][cColorOne], CarInfo[carkey2][cColorTwo], CarInfo[carkey2][cDescription]);
                       strcat(string2,string);
                   }
                   if (PlayerInfo[targetid][pPcarkey3] != -1)
                   {
                       format(string, sizeof(string), "» Vehicul personal 3: VehID:%d • VehColor1:%d • VehColor2:%d • Model:%s", PlayerInfo[targetid][pPcarkey3], CarInfo[carkey3][cColorOne], CarInfo[carkey3][cColorTwo], CarInfo[carkey3][cDescription]);
                       strcat(string2,string);
                   }

               }
            }

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Posted

Vorbesti limba romana? Explica mai bine ce ai zis aici:

la ce imi da asulkapa imi da erori....

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Posted

la ce imi da asulkapa imi da erori....

Ti-am spus sa-l editezi , ca asta este altfel de script si probabil ca tu nu ai unele chesti , uitate atent in ala al tau si editeazal pasta. !

Cauti scripter / Mapper pentru servarul tau ? [email protected] [FREE SCRIPTING]

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.