Jump to content

Recommended Posts

Posted

Am facut un texdraw speedometer pt masina dar nu stiu cum sa il pun

Acesta este scriptul:

Citat

    Speed[0] = TextDrawCreate(563.000000, 295.000000, "_");
    TextDrawFont(Speed[0], 0);
    TextDrawLetterSize(Speed[0], 0.600000, 7.850000);
    TextDrawTextSize(Speed[0], 308.000000, 132.000000);
    TextDrawSetOutline(Speed[0], 1);
    TextDrawSetShadow(Speed[0], 0);
    TextDrawAlignment(Speed[0], 2);
    TextDrawColor(Speed[0], -1);
    TextDrawBackgroundColor(Speed[0], 16711746);
    TextDrawBoxColor(Speed[0], 1296911682);
    TextDrawUseBox(Speed[0], 1);
    TextDrawSetProportional(Speed[0], 1);
    TextDrawSetSelectable(Speed[0], 0);

    Speed[1] = TextDrawCreate(589.000000, 314.000000, "~y~Speed: 100km/h");
    TextDrawFont(Speed[1], 1);
    TextDrawLetterSize(Speed[1], 0.324999, 1.949998);
    TextDrawTextSize(Speed[1], 400.000000, 17.000000);
    TextDrawSetOutline(Speed[1], 1);
    TextDrawSetShadow(Speed[1], 0);
    TextDrawAlignment(Speed[1], 3);
    TextDrawColor(Speed[1], -1);
    TextDrawBackgroundColor(Speed[1], 255);
    TextDrawBoxColor(Speed[1], 50);
    TextDrawUseBox(Speed[1], 0);
    TextDrawSetProportional(Speed[1], 1);
    TextDrawSetSelectable(Speed[1], 0);

    Speed[2] = TextDrawCreate(558.000000, 334.000000, "~r~Fuel: 100L");
    TextDrawFont(Speed[2], 1);
    TextDrawLetterSize(Speed[2], 0.333332, 1.999997);
    TextDrawTextSize(Speed[2], 400.000000, 17.000000);
    TextDrawSetOutline(Speed[2], 1);
    TextDrawSetShadow(Speed[2], 0);
    TextDrawAlignment(Speed[2], 3);
    TextDrawColor(Speed[2], -1);
    TextDrawBackgroundColor(Speed[2], 255);
    TextDrawBoxColor(Speed[2], 50);
    TextDrawUseBox(Speed[2], 0);
    TextDrawSetProportional(Speed[2], 1);
    TextDrawSetSelectable(Speed[2], 0);

    Speed[3] = TextDrawCreate(499.000000, 294.000000, "~b~Infernus");
    TextDrawFont(Speed[3], 1);
    TextDrawLetterSize(Speed[3], 0.324999, 2.000000);
    TextDrawTextSize(Speed[3], 400.000000, 17.000000);
    TextDrawSetOutline(Speed[3], 1);
    TextDrawSetShadow(Speed[3], 2);
    TextDrawAlignment(Speed[3], 1);
    TextDrawColor(Speed[3], -1);
    TextDrawBackgroundColor(Speed[3], 255);
    TextDrawBoxColor(Speed[3], 50);
    TextDrawUseBox(Speed[3], 0);
    TextDrawSetProportional(Speed[3], 1);
    TextDrawSetSelectable(Speed[3], 0);

 

Posted (edited)

Atunci cand intra in masina faci asa (TREBUIA SA FACI TD-URILE DE TIP PLAYER NU GLOBAL)

// Global

TextDrawShowForPlayer(playerid, Speed[0]);

TextDrawShowForPlayer(playerid, Speed[1]);

TextDrawShowForPlayer(playerid, Speed[2]);

TextDrawShowForPlayer(playerid, Speed[3]);

 

// PLAYER

PlayerTextDrawShow(playerid, Speed[0]);

PlayerTextDrawShow(playerid, Speed[1]);

PlayerTextDrawShow(playerid, Speed[2]);

PlayerTextDrawShow(playerid, Speed[3]);

Edited by Raduq
Posted (edited)

Si unde pun scriptu'

PS: Scz double post

Edited by IosifR

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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.