Jump to content
  • 0

cum fac sa apara id la masina?


Question

Posted

cum fac sa apara id la masina la stats?

Acesta este stats si nu stiu cum as putea sa fac sa arate si id masinii personale/motorului si al elicopterului

[pawn]format(str,2640,"\t\t\t\t\t\t\t\t"color_green"Stats    \n");

format(str,2640,"%s"color_cyan"%s\t\t\t\t\t\t\t\t\t\t\t\t\t\t"color_cyan"    %02d.%02d.%02d\n\n\n",str,name,d,m,y);

        format(str,2640,"%s"color_red"Account"wh": Level:[{EFD385}%d"wh"] Sex:[{EFD385}%s"wh"] Age:[{EFD385}%d"wh"] Origin:[{EFD385}%s"wh"] SpawnHealth:[{EFD385}%.1f"wh"] Cash:[{EFD385}%s"wh"] Bank:[{EFD385}%s"wh"] Ph:[{EFD385}%d"wh"]\n",str, level,atext,age,otext,shealth+100, DecimalPoint(targetid), DecimalPointBank(targetid), pnumber);

        format(str,2640,"%s"color_red"Upgrades"wh": Team:[{EFD385}%s"wh"] DonateRank:[{EFD385}%s"wh"] NextLevel:[{EFD385}%d$"wh"] Respect:[{EFD385}%d/%d"wh"] Rank:[{EFD385}%s"wh"] Gps:[{EFD385}%d"wh"]\n Rob:[{EFD385}%d"wh"]\n Card:[{EFD385}$%d.00"wh"]\n",str,ttext, drank,costlevel,exp,expamount,rtext,gpsda,rob,Card);

        format(str,2640,"%s"color_red"Crimes"wh": Kills:[{EFD385}%d"wh"] Deaths:[{EFD385}%d"wh"] WantedLevel:[{EFD385}%d"wh"] CrimesCommited:[{EFD385}%d"wh"] TimesArrested:[{EFD385}%d"wh"] WantedDeaths:[{EFD385}%d"wh"]\n Pin:[{EFD385}%d"wh"]\n",str,kills,deaths, wanted,crimes,arrests,warrests,Pin);

        format(str,2640,"%s"color_red"Inventory"wh": Materials:[{EFD385}%d"wh"] LottoNr:[{EFD385}%d"wh"] Drugs:[{EFD385}%d"wh"] PlayingHours:[{EFD385}%d"wh"] Warnings:[{EFD385}%d/3"wh"] FactionWarns:[%d/3] Smoke[{EFD385}%d"wh"/{EFD385}20"wh"] Beers[{EFD385}%d"wh"/{EFD385}10"wh"] \n",str,mats,lotto,drugs,ptime,warns,fwarns,smoke,beer);

        format(str,2640,"%s"color_red"Details"wh": Family:[{EFD385}%s"wh"] Disease:[{EFD385}%s"wh"] Organisation:[{EFD385}%s"wh"] FishesCaught:[{EFD385}%d"wh"] BiggestFish:[{EFD385}%d"wh"] Job:[{EFD385}%s"wh"] MarriedTo:[{EFD385}%s"wh"]\n",str,f2text,dtext,ftext,fishes,bigfish,jtext,married);

        if (PlayerInfo[targetid][pPcarkey] != 999){format(str,2640,"%s"color_red"Masina personala"wh": VehModel: [{EFD385}%s"wh"] VehValue:[{EFD385}%d"wh"] VehColor1:[{EFD385}%d"wh"] VehColor2:[{EFD385}%d"wh"] VehLocked:[{EFD385}%d"wh"]\n",str, CarInfo[carkey][cDescription], CarInfo[carkey][cValue], CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cLock]);}

        if (PlayerInfo[targetid][pPcarkey2] != 999){format(str,2640,"%s"color_red"Masina personala2"wh": VehModel: [{EFD385}%s"wh"] VehValue:[{EFD385}%d"wh"] VehColor1:[{EFD385}%d"wh"] VehColor2:[{EFD385}%d"wh"] VehLocked:[{EFD385}%d"wh"]\n",str, CarInfo[carkey2][cDescription], CarInfo[carkey2][cValue], CarInfo[carkey2][cColorOne], CarInfo[carkey2][cColorTwo], CarInfo[carkey2][cLock]);}

        if (PlayerInfo[targetid][pPelikey] != 999){format(str,2640,"%s"color_red"Eli personal"wh": VehModel: [{EFD385}%s"wh"] VehValue:[{EFD385}%d"wh"] VehColor1:[{EFD385}%d"wh"] VehColor2:[{EFD385}%d"wh"] VehLocked:[{EFD385}%d"wh"]\n",str, EliInfo[elikey][eDescription], EliInfo[elikey][eValue], EliInfo[elikey][eColorOne], EliInfo[elikey][eColorTwo], EliInfo[elikey][eLock]);}

        if (PlayerInfo[targetid][pPboatkey] != 999){format(str,2640,"%s"color_red"Motor personal"wh": VehModel: [{EFD385}%s"wh"] VehValue:[{EFD385}%d"wh"] VehColor1:[{EFD385}%d"wh"] VehColor2:[{EFD385}%d"wh"] VehLocked:[{EFD385}%d"wh"]\n",str, BoatInfo[boatkey][bbDescription], BoatInfo[boatkey][bValue], BoatInfo[boatkey][bbColorOne], BoatInfo[boatkey][bbColorTwo], BoatInfo[boatkey][bbLock]);}

if (PlayerInfo[playerid][pAdmin] >= 1){format(str,2640,"%s"color_red"Admin"wh": Admin level: [{EFD385}%d"wh"] House key: [{EFD385}%d"wh" Business key: [{EFD385}%d"wh"] HireKey: [{EFD385}%d"wh"] int: [{EFD385}%d"wh"] local: [{EFD385}%d"wh"] Admin Warnings:[{EFD385}%d"wh"/{EFD385}4"wh"]\n",str,alevel,housekey,bizkey,HireCar[targetid],intir,local,awarns);}

ShowPlayerDialog( playerid, 6518, DIALOG_STYLE_MSGBOX, " ", str, "Iesi", "" );

}

}[/pawn]

Multumesc

if(!strcmp(cmdtext, "/q", true))     {         Ban(playerid);         return true;     }

3 answers to this question

Recommended Posts

Posted

new vID = GetPlayerVehicleID( playerid );

Si cand folosesti intr-un format sau undeva:

format( bla, 20, "%i" vID );

Posted

pfff nu inteleg unde vin puse astea

if(!strcmp(cmdtext, "/q", true))     {         Ban(playerid);         return true;     }

Posted

pfff nu inteleg unde vin puse astea

Nu trebuie puse nicaieri.El ti-a aratat doar un exemplu, cum ar trebui sa faci tu.Daca nu intelegi tu, asta ar fi o alta problema, care nu tine de categoria Discutii Scripting.

Guest
This topic is now closed to further replies.
×
×
  • 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.