Skripta koju koristim: moja
Detaljan opis problema: Pa napravio sam komandu /pokaziosobnu u texdrawowvima i radi sve normalno, pokazuje ime,godine i ostalo ali sad me zanima kako da stavim pored da mi pokaze sliku skina koji imam, valjda me razumijete što želim
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
(http://i.imgur.com/s6JLyey.png)
Skin igraca radis preko http://wiki.sa-mp.com/wiki/TextDrawSetPreviewModel
Pogledaj na yt kako se koristi...
ako bi mi neko mogao to ovdje objasniti i dati neki primjer
Islo bi ovako TextDrawSetPreviewModel(ImeTvogTextdrawa, GetPlayerSkin(playerid));
ili ovako ako koristis PlayerTextDraw PlayerTextDrawSetPreviewModel(playerid, ImeTvogTextdrawa, GetPlayerSkin(playerid));
pokušat ću pa javim
napravio sam ali mi ne pokazuje
http://i.imgur.com/DFoRU4h.jpg evo slika
//osobna
Osobna0[playerid] = CreatePlayerTextDraw(playerid, 245.973648, 173.250000, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, Osobna0[playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, Osobna0[playerid], 137.745223, 90.416687);
PlayerTextDrawAlignment(playerid, Osobna0[playerid], 1);
PlayerTextDrawColor(playerid, Osobna0[playerid], 0xFF6200FF); //-5963521
PlayerTextDrawSetShadow(playerid, Osobna0[playerid], 0);
PlayerTextDrawSetOutline(playerid, Osobna0[playerid], 0);
PlayerTextDrawFont(playerid, Osobna0[playerid], 4);
Osobna1[playerid] = CreatePlayerTextDraw(playerid, 248.505081, 173.833358, "Ime i prezime: Joe_Black");
PlayerTextDrawLetterSize(playerid, Osobna1[playerid], 0.164202, 1.395832);
PlayerTextDrawAlignment(playerid, Osobna1[playerid], 1);
PlayerTextDrawColor(playerid, Osobna1[playerid], -1);
PlayerTextDrawSetShadow(playerid, Osobna1[playerid], 0);
PlayerTextDrawSetOutline(playerid, Osobna1[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Osobna1[playerid], 51);
PlayerTextDrawFont(playerid, Osobna1[playerid], 1);
PlayerTextDrawSetProportional(playerid, Osobna1[playerid], 1);
Osobna2[playerid] = CreatePlayerTextDraw(playerid, 248.505081, 193.083389, "Godine: 22");
PlayerTextDrawLetterSize(playerid, Osobna2[playerid], 0.236353, 0.724999);
PlayerTextDrawAlignment(playerid, Osobna2[playerid], 1);
PlayerTextDrawColor(playerid, Osobna2[playerid], -1);
PlayerTextDrawSetShadow(playerid, Osobna2[playerid], 0);
PlayerTextDrawSetOutline(playerid, Osobna2[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Osobna2[playerid], 51);
PlayerTextDrawFont(playerid, Osobna2[playerid], 1);
PlayerTextDrawSetProportional(playerid, Osobna2[playerid], 1);
Osobna3[playerid] = CreatePlayerTextDraw(playerid, 248.505081, 207.666641, "Broj telefona: 123456");
PlayerTextDrawLetterSize(playerid, Osobna3[playerid], 0.183879, 1.039999);
PlayerTextDrawAlignment(playerid, Osobna3[playerid], 1);
PlayerTextDrawColor(playerid, Osobna3[playerid], -1);
PlayerTextDrawSetShadow(playerid, Osobna3[playerid], 0);
PlayerTextDrawSetOutline(playerid, Osobna3[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Osobna3[playerid], 51);
PlayerTextDrawFont(playerid, Osobna3[playerid], 1);
PlayerTextDrawSetProportional(playerid, Osobna3[playerid], 1);
Osobna4[playerid] = CreatePlayerTextDraw(playerid, 248.505081, 223.416702, "Potpis:");
PlayerTextDrawLetterSize(playerid, Osobna4[playerid], 0.256031, 0.870833);
PlayerTextDrawAlignment(playerid, Osobna4[playerid], 1);
PlayerTextDrawColor(playerid, Osobna4[playerid], -1);
PlayerTextDrawSetShadow(playerid, Osobna4[playerid], 0);
PlayerTextDrawSetOutline(playerid, Osobna4[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Osobna4[playerid], 51);
PlayerTextDrawFont(playerid, Osobna4[playerid], 1);
PlayerTextDrawSetProportional(playerid, Osobna4[playerid], 1);
Osobna5[playerid] = CreatePlayerTextDraw(playerid, 253.469894, 236.250015, "JoeBlack");
PlayerTextDrawLetterSize(playerid, Osobna5[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Osobna5[playerid], 1);
PlayerTextDrawColor(playerid, Osobna5[playerid], 255);
PlayerTextDrawSetShadow(playerid, Osobna5[playerid], 0);
PlayerTextDrawSetOutline(playerid, Osobna5[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Osobna5[playerid], 51);
PlayerTextDrawFont(playerid, Osobna5[playerid], 0);
PlayerTextDrawSetProportional(playerid, Osobna5[playerid], 1);
/* Osobna6[playerid] = CreatePlayerTextDraw(playerid, 383.376281, 177.083343, "usebox");
PlayerTextDrawLetterSize(playerid, Osobna6[playerid], 0.000000, 5.127776);
PlayerTextDrawTextSize(playerid, Osobna6[playerid], 332.055633, 0.000000);
PlayerTextDrawAlignment(playerid, Osobna6[playerid], 1);
PlayerTextDrawColor(playerid, Osobna6[playerid], 0);
PlayerTextDrawUseBox(playerid, Osobna6[playerid], true);
PlayerTextDrawBoxColor(playerid, Osobna6[playerid], 102);
PlayerTextDrawSetShadow(playerid, Osobna6[playerid], 0);
PlayerTextDrawSetOutline(playerid, Osobna6[playerid], 0);
PlayerTextDrawFont(playerid, Osobna6[playerid], 0);*/
Osobna6[playerid] = CreatePlayerTextDraw(playerid, 383.376281, 177.083343, "usebox"); // Position X und Y
PlayerTextDrawFont(playerid, Osobna6[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW); // Der Modus für MODEL_PREVIEW (immer gleich)
PlayerTextDrawColor(playerid, Osobna6[playerid], 0xFFFFFFFF);
PlayerTextDrawBackgroundColor(playerid, Osobna6[playerid], 0x88888899); // Hintergrundfarbe des Previews
PlayerTextDrawTextSize(playerid, Osobna6[playerid], 332.055633, 0.000000); // width und height für die Höhe und Weite des Previews
PlayerTextDrawSetPreviewModel(playerid, Osobna6[playerid], 1); // modelID ist die ID des Objekts/Autos/etc.
PlayerTextDrawSetPreviewRot(playerid,Osobna6[playerid], -16.0, 0.0, 0.0); // Die Rotation des Models im Preview (meist muss es garnicht gesetzt werden)
//PlayerTextDrawShow(playerid,Osobna6[playerid]); // TextDraw zeigen
Osobna7[playerid] = CreatePlayerTextDraw(playerid, 339.677886, 224.583328, "X:RP v2.0 by Joe");
PlayerTextDrawLetterSize(playerid, Osobna7[playerid], 0.105636, 1.290835);
PlayerTextDrawAlignment(playerid, Osobna7[playerid], 1);
PlayerTextDrawColor(playerid, Osobna7[playerid], -1);
PlayerTextDrawSetShadow(playerid, Osobna7[playerid], 0);
PlayerTextDrawSetOutline(playerid, Osobna7[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Osobna7[playerid], 51);
PlayerTextDrawFont(playerid, Osobna7[playerid], 2);
PlayerTextDrawSetProportional(playerid, Osobna7[playerid], 1);
new str[1256];
format(str, sizeof(str), "Ime i prezime: %s",GetName(playerid));
PlayerTextDrawSetString(giveplayerid, Osobna1[playerid], str);
format(str, sizeof(str), "Godine: %d", P_Enum[playerid][pe_Godine]);
PlayerTextDrawSetString(giveplayerid, Osobna2[playerid], str);
format(str, sizeof(str), "Broj telefona: %d", P_Enum[playerid][pe_Mobitel]);
PlayerTextDrawSetString(giveplayerid, Osobna3[playerid], str);
format(str, sizeof(str), "%s", GetName(playerid));
PlayerTextDrawSetString(giveplayerid, Osobna5[playerid], str);
PlayerTextDrawSetPreviewModel(giveplayerid, Osobna6[playerid], GetPlayerSkin(playerid));
uspio sam nešto ali mi ne pokazuje sku pravog skina
Osobna0[playerid] = CreatePlayerTextDraw(playerid,248.000000, 180.000000, "Ime i prezime: Joe Black");
PlayerTextDrawBackgroundColor(playerid,Osobna0[playerid], 255);
PlayerTextDrawFont(playerid,Osobna0[playerid], 1);
PlayerTextDrawLetterSize(playerid,Osobna0[playerid], 0.300000, 1.000000);
PlayerTextDrawColor(playerid,Osobna0[playerid], -1);
PlayerTextDrawSetOutline(playerid,Osobna0[playerid], 0);
PlayerTextDrawSetProportional(playerid,Osobna0[playerid], 1);
PlayerTextDrawSetShadow(playerid,Osobna0[playerid], 1);
PlayerTextDrawUseBox(playerid,Osobna0[playerid], 1);
PlayerTextDrawBoxColor(playerid,Osobna0[playerid], 16711935);
PlayerTextDrawTextSize(playerid,Osobna0[playerid], 449.000000, 50.000000);
PlayerTextDrawSetSelectable(playerid,Osobna0[playerid], 0);
Osobna1[playerid] = CreatePlayerTextDraw(playerid,248.000000, 193.000000, "Godine: 22");
PlayerTextDrawBackgroundColor(playerid,Osobna1[playerid], 255);
PlayerTextDrawFont(playerid,Osobna1[playerid], 1);
PlayerTextDrawLetterSize(playerid,Osobna1[playerid], 0.280000, 0.899999);
PlayerTextDrawColor(playerid,Osobna1[playerid], -1);
PlayerTextDrawSetOutline(playerid,Osobna1[playerid], 0);
PlayerTextDrawSetProportional(playerid,Osobna1[playerid], 1);
PlayerTextDrawSetShadow(playerid,Osobna1[playerid], 1);
PlayerTextDrawUseBox(playerid,Osobna1[playerid], 1);
PlayerTextDrawBoxColor(playerid,Osobna1[playerid], 16711935);
PlayerTextDrawTextSize(playerid,Osobna1[playerid], 449.000000, 0.000000);
PlayerTextDrawSetSelectable(playerid,Osobna1[playerid], 0);
Osobna2[playerid] = CreatePlayerTextDraw(playerid,248.000000, 205.000000, "Telefonski broj: 123456");
PlayerTextDrawBackgroundColor(playerid,Osobna2[playerid], 255);
PlayerTextDrawFont(playerid,Osobna2[playerid], 1);
PlayerTextDrawLetterSize(playerid,Osobna2[playerid], 0.300000, 1.000000);
PlayerTextDrawColor(playerid,Osobna2[playerid], -1);
PlayerTextDrawSetOutline(playerid,Osobna2[playerid], 0);
PlayerTextDrawSetProportional(playerid,Osobna2[playerid], 1);
PlayerTextDrawSetShadow(playerid,Osobna2[playerid], 1);
PlayerTextDrawUseBox(playerid,Osobna2[playerid], 1);
PlayerTextDrawBoxColor(playerid,Osobna2[playerid], 16711935);
PlayerTextDrawTextSize(playerid,Osobna2[playerid], 449.000000, 0.000000);
PlayerTextDrawSetSelectable(playerid,Osobna2[playerid], 0);
Osobna3[playerid] = CreatePlayerTextDraw(playerid,248.000000, 218.000000, "Potpis:");
PlayerTextDrawBackgroundColor(playerid,Osobna3[playerid], 255);
PlayerTextDrawFont(playerid,Osobna3[playerid], 1);
PlayerTextDrawLetterSize(playerid,Osobna3[playerid], 0.209999, 1.000000);
PlayerTextDrawColor(playerid,Osobna3[playerid], -1);
PlayerTextDrawSetOutline(playerid,Osobna3[playerid], 0);
PlayerTextDrawSetProportional(playerid,Osobna3[playerid], 1);
PlayerTextDrawSetShadow(playerid,Osobna3[playerid], 1);
PlayerTextDrawUseBox(playerid,Osobna3[playerid], 1);
PlayerTextDrawBoxColor(playerid,Osobna3[playerid], 16711935);
PlayerTextDrawTextSize(playerid,Osobna3[playerid], 449.000000, 0.000000);
PlayerTextDrawSetSelectable(playerid,Osobna3[playerid], 0);
Osobna4[playerid] = CreatePlayerTextDraw(playerid,248.000000, 230.000000, "JoeBlack");
PlayerTextDrawBackgroundColor(playerid,Osobna4[playerid], 255);
PlayerTextDrawFont(playerid,Osobna4[playerid], 0);
PlayerTextDrawLetterSize(playerid,Osobna4[playerid], 0.819999, 4.099998);
PlayerTextDrawColor(playerid,Osobna4[playerid], 255);
PlayerTextDrawSetOutline(playerid,Osobna4[playerid], 0);
PlayerTextDrawSetProportional(playerid,Osobna4[playerid], 1);
PlayerTextDrawSetShadow(playerid,Osobna4[playerid], 0);
PlayerTextDrawUseBox(playerid,Osobna4[playerid], 1);
PlayerTextDrawBoxColor(playerid,Osobna4[playerid], 16711935);
PlayerTextDrawTextSize(playerid,Osobna4[playerid], 449.000000, 0.000000);
PlayerTextDrawSetSelectable(playerid,Osobna4[playerid], 0);
Osobna5[playerid] = CreatePlayerTextDraw(playerid,389.000000, 260.000000, "X:RP v2.0 by Joe");
PlayerTextDrawBackgroundColor(playerid,Osobna5[playerid], 255);
PlayerTextDrawFont(playerid,Osobna5[playerid], 1);
PlayerTextDrawLetterSize(playerid,Osobna5[playerid], 0.150000, 0.799999);
PlayerTextDrawColor(playerid,Osobna5[playerid], 255);
PlayerTextDrawSetOutline(playerid,Osobna5[playerid], 0);
PlayerTextDrawSetProportional(playerid,Osobna5[playerid], 1);
PlayerTextDrawSetShadow(playerid,Osobna5[playerid], 0);
PlayerTextDrawSetSelectable(playerid,Osobna5[playerid], 0);
Osobna6[playerid] = CreatePlayerTextDraw(playerid,377.000000, 180.000000, "New Textdraw");
PlayerTextDrawBackgroundColor(playerid,Osobna6[playerid], 255);
PlayerTextDrawFont(playerid,Osobna6[playerid], 5);
PlayerTextDrawLetterSize(playerid,Osobna6[playerid], 0.500000, 1.000000);
PlayerTextDrawColor(playerid,Osobna6[playerid], -1);
PlayerTextDrawSetOutline(playerid,Osobna6[playerid], 0);
PlayerTextDrawSetProportional(playerid,Osobna6[playerid], 1);
PlayerTextDrawSetShadow(playerid,Osobna6[playerid], 1);
PlayerTextDrawUseBox(playerid,Osobna6[playerid], 1);
PlayerTextDrawBoxColor(playerid,Osobna6[playerid], 16711935);
PlayerTextDrawTextSize(playerid,Osobna6[playerid], 72.000000, 78.000000);
PlayerTextDrawSetPreviewModel(playerid, Osobna6[playerid], 1);
PlayerTextDrawSetPreviewRot(playerid, Osobna6[playerid], -16.000000, 0.000000, -55.000000, 1.000000);
PlayerTextDrawSetSelectable(playerid,Osobna6[playerid], 0);
PlayerTextDrawShow(giveplayerid, Osobna0[playerid]);
PlayerTextDrawShow(giveplayerid, Osobna1[playerid]);
PlayerTextDrawShow(giveplayerid, Osobna2[playerid]);
PlayerTextDrawShow(giveplayerid, Osobna3[playerid]);
PlayerTextDrawShow(giveplayerid, Osobna4[playerid]);
PlayerTextDrawShow(giveplayerid, Osobna5[playerid]);
PlayerTextDrawShow(giveplayerid, Osobna6[playerid]);
//PlayerTextDrawShow(giveplayerid, Osobna7[playerid]);
new str[1256];
format(str, sizeof(str), "Ime i prezime: %s",GetName(playerid));
PlayerTextDrawSetString(giveplayerid, Osobna0[playerid], str);
format(str, sizeof(str), "Godine: %d", P_Enum[playerid][pe_Godine]);
PlayerTextDrawSetString(giveplayerid, Osobna1[playerid], str);
format(str, sizeof(str), "Broj telefona: %d", P_Enum[playerid][pe_Mobitel]);
PlayerTextDrawSetString(giveplayerid, Osobna2[playerid], str);
format(str, sizeof(str), "%s", GetName(playerid));
PlayerTextDrawSetString(giveplayerid, Osobna4[playerid], str);
PlayerTextDrawSetPreviewModel(giveplayerid, Osobna6[playerid], GetPlayerSkin(playerid));
format(string, sizeof(string), " %s vam je pokazao osobnu kartu.", GetName(playerid));
SCM(giveplayerid, -1, string);
INFO(giveplayerid, "Da vratite osobnu kucajte /vratiosobnu");
(http://i.imgur.com/AyuWO4p.png)
(http://i.imgur.com/XqKxr9n.jpg)
Molimo te da procitas pravila foruma te da onda otvoris temu po pravilima.
Razlog zakljucavanja:
BUMP/DP je dozvoljen svakih 24h !
Pravila:
Glavna pravila Balkan SA:MP foruma (http://balkan-samp.com/forum/index.php?topic=7045.0) .
Razgovor u vezi PAWN-Skriptanja (http://balkan-samp.com/forum/index.php?topic=11453.0) .