Jump to content

Ajutor Skin i in stanga minimap-ului


AmmA
 Share

Recommended Posts

Adaugi la new sus : 

PlayerText:SkinPreview[MAX_PLAYERS]; 

Dupa mergi jos daca ai textdraw-uri gen Speedometer o sa scrii Textdraw si sub el adaugi:

SkinPreview[playerid] = CreatePlayerTextDraw(playerid,-34.000000, 365.000000, "_");
	PlayerTextDrawBackgroundColor(playerid,SkinPreview[playerid], 0);
	PlayerTextDrawFont(playerid,SkinPreview[playerid],6);//skin de ala langa map
	PlayerTextDrawLetterSize(playerid,SkinPreview[playerid], 0.749998, 1.899999);
	PlayerTextDrawColor(playerid,SkinPreview[playerid], -1);
	PlayerTextDrawSetOutline(playerid,SkinPreview[playerid], 0);
	PlayerTextDrawSetProportional(playerid,SkinPreview[playerid], 1);
	PlayerTextDrawSetShadow(playerid,SkinPreview[playerid], 1);
	PlayerTextDrawUseBox(playerid,SkinPreview[playerid], 1);
	PlayerTextDrawBoxColor(playerid,SkinPreview[playerid], 0);
	PlayerTextDrawTextSize(playerid,SkinPreview[playerid], 106.000000, 72.000000);
	PlayerTextDrawSetPreviewModel(playerid, SkinPreview[playerid], 0);
	PlayerTextDrawSetPreviewRot(playerid, SkinPreview[playerid], -8.000000, 0.000000, 15.000000, 1.000000);
	PlayerTextDrawSetSelectable(playerid,SkinPreview[playerid], 0); 

Sper ca te-am ajutat.

Link to comment
Share on other sites

Adaugi la new sus : 

PlayerText:SkinPreview[MAX_PLAYERS]; 

Dupa mergi jos daca ai textdraw-uri gen Speedometer o sa scrii Textdraw si sub el adaugi:

SkinPreview[playerid] = CreatePlayerTextDraw(playerid,-34.000000, 365.000000, "_");
	PlayerTextDrawBackgroundColor(playerid,SkinPreview[playerid], 0);
	PlayerTextDrawFont(playerid,SkinPreview[playerid],6);//skin de ala langa map
	PlayerTextDrawLetterSize(playerid,SkinPreview[playerid], 0.749998, 1.899999);
	PlayerTextDrawColor(playerid,SkinPreview[playerid], -1);
	PlayerTextDrawSetOutline(playerid,SkinPreview[playerid], 0);
	PlayerTextDrawSetProportional(playerid,SkinPreview[playerid], 1);
	PlayerTextDrawSetShadow(playerid,SkinPreview[playerid], 1);
	PlayerTextDrawUseBox(playerid,SkinPreview[playerid], 1);
	PlayerTextDrawBoxColor(playerid,SkinPreview[playerid], 0);
	PlayerTextDrawTextSize(playerid,SkinPreview[playerid], 106.000000, 72.000000);
	PlayerTextDrawSetPreviewModel(playerid, SkinPreview[playerid], 0);
	PlayerTextDrawSetPreviewRot(playerid, SkinPreview[playerid], -8.000000, 0.000000, 15.000000, 1.000000);
	PlayerTextDrawSetSelectable(playerid,SkinPreview[playerid], 0); 

Sper ca te-am ajutat.

 

Am pus alea cum ai zis dar imi da erore:http://i.imgur.com/wa2q8Hd.png

Link to comment
Share on other sites

Am pus alea cum ai zis dar imi da erore:http://i.imgur.com/wa2q8Hd.png

Fi atent, tot cu scriptul lui @, dar, te duci si adaugi la inceputul gamemode-ului:

new PlayerText: SkinPreview[MAX_PLAYERS];

Iar la OnGameModeInit, adaugi urm script:

 

for(new f = 0; f < MAX_PLAYERS; f++)
  {

    SkinPreview[f] = CreatePlayerTextDraw(playerid,-34.000000, 365.000000, "_");
    PlayerTextDrawBackgroundColor(playerid,SkinPreview[f], 0);
    PlayerTextDrawFont(playerid,SkinPreview[f],5);// aici trb 5, nu 6
    PlayerTextDrawLetterSize(playerid,SkinPreview[f], 0.749998, 1.899999);
    PlayerTextDrawColor(playerid,SkinPreview[f], -1);
    PlayerTextDrawSetOutline(playerid,SkinPreview[f], 0);
    PlayerTextDrawSetProportional(playerid,SkinPreview[f], 1);
    PlayerTextDrawSetShadow(playerid,SkinPreview[f], 1);
    PlayerTextDrawUseBox(playerid,SkinPreview[f], 1);
    PlayerTextDrawBoxColor(playerid,SkinPreview[f], 0);
    PlayerTextDrawTextSize(playerid,SkinPreview[f], 106.000000, 72.000000);
    PlayerTextDrawSetPreviewModel(playerid, SkinPreview[f], 0);
    PlayerTextDrawSetPreviewRot(playerid, SkinPreview[f], -8.000000, 0.000000, 15.000000, 1.000000);
    PlayerTextDrawSetSelectable(playerid,SkinPreview[f], 0);
}
Edited by CRAZYBAWS
Link to comment
Share on other sites

 

Fi atent, tot cu scriptul lui @, dar, te duci si adaugi la inceputul gamemode-ului:

new PlayerText: SkinPreview[MAX_PLAYERS];

Iar la OnGameModeInit, adaugi urm script:

for(new f = 0; f < MAX_PLAYERS; f++)
  {

    SkinPreview[f] = CreatePlayerTextDraw(playerid,-34.000000, 365.000000, "_");
    PlayerTextDrawBackgroundColor(playerid,SkinPreview[f], 0);
    PlayerTextDrawFont(playerid,SkinPreview[f],5);// aici trb 5, nu 6
    PlayerTextDrawLetterSize(playerid,SkinPreview[f], 0.749998, 1.899999);
    PlayerTextDrawColor(playerid,SkinPreview[f], -1);
    PlayerTextDrawSetOutline(playerid,SkinPreview[f], 0);
    PlayerTextDrawSetProportional(playerid,SkinPreview[f], 1);
    PlayerTextDrawSetShadow(playerid,SkinPreview[f], 1);
    PlayerTextDrawUseBox(playerid,SkinPreview[f], 1);
    PlayerTextDrawBoxColor(playerid,SkinPreview[f], 0);
    PlayerTextDrawTextSize(playerid,SkinPreview[f], 106.000000, 72.000000);
    PlayerTextDrawSetPreviewModel(playerid, SkinPreview[f], 0);
    PlayerTextDrawSetPreviewRot(playerid, SkinPreview[f], -8.000000, 0.000000, 15.000000, 1.000000);
    PlayerTextDrawSetSelectable(playerid,SkinPreview[f], 0);
}

Si mie tot la fel imi zice.

Link to comment
Share on other sites

 

Fi atent, tot cu scriptul lui @, dar, te duci si adaugi la inceputul gamemode-ului:

new PlayerText: SkinPreview[MAX_PLAYERS];

Iar la OnGameModeInit, adaugi urm script:

for(new f = 0; f < MAX_PLAYERS; f++)
  {

    SkinPreview[f] = CreatePlayerTextDraw(playerid,-34.000000, 365.000000, "_");
    PlayerTextDrawBackgroundColor(playerid,SkinPreview[f], 0);
    PlayerTextDrawFont(playerid,SkinPreview[f],5);// aici trb 5, nu 6
    PlayerTextDrawLetterSize(playerid,SkinPreview[f], 0.749998, 1.899999);
    PlayerTextDrawColor(playerid,SkinPreview[f], -1);
    PlayerTextDrawSetOutline(playerid,SkinPreview[f], 0);
    PlayerTextDrawSetProportional(playerid,SkinPreview[f], 1);
    PlayerTextDrawSetShadow(playerid,SkinPreview[f], 1);
    PlayerTextDrawUseBox(playerid,SkinPreview[f], 1);
    PlayerTextDrawBoxColor(playerid,SkinPreview[f], 0);
    PlayerTextDrawTextSize(playerid,SkinPreview[f], 106.000000, 72.000000);
    PlayerTextDrawSetPreviewModel(playerid, SkinPreview[f], 0);
    PlayerTextDrawSetPreviewRot(playerid, SkinPreview[f], -8.000000, 0.000000, 15.000000, 1.000000);
    PlayerTextDrawSetSelectable(playerid,SkinPreview[f], 0);
}

Am pus si  tot imi da erorea cu  playerid

 

Imagini:http://imgur.com/a/P8AY5

 

http://imgur.com/LcYngK7

Edited by AmmA
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. 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.