Jump to content

Question

Posted

Problema intalnita (descriere): Buna ziua  ce este gresit la textdraw daca pun 411 id infernus arata poza cu infernus dar daca pun sa imi ia modelul masinii si pun in loc de 411 veh arata skinul lui CJ
Ero(area / rile) / warning-(ul / urile): 0
Liniile de cod / sursa / script-ul:

  for(new i = 0; i < MAX_PLAYERS; i++)
    {
    new vehicleid = GetPlayerVehicleID(i);
    new veh = GetVehicleModel(vehicleid);
    Speedo[1] = TextDrawCreate(528.777526, 269.333435, "");
    TextDrawLetterSize(Speedo[1], 0.000000, 0.000000);
    TextDrawTextSize(Speedo[1], 96.559295, 113.916648);
    TextDrawAlignment(Speedo[1], 1);
    TextDrawColor(Speedo[1], -1);
    TextDrawSetShadow(Speedo[1], 0);
    TextDrawSetOutline(Speedo[1], 0);
    TextDrawBackgroundColor(Speedo[1], 0);
    TextDrawFont(Speedo[1], 5);
    TextDrawSetProportional(Speedo[1], 1);
    TextDrawSetShadow(Speedo[1], 0);
    TextDrawSetPreviewModel(Speedo[1], veh); // aici pun 411 si daca pun 411 se vede infernus dar asa skinul lui CJ
    TextDrawSetPreviewRot(Speedo[1], 0.000000, 0.000000, 320.000000, 1.000000);
    TextDrawSetPreviewVehCol(Speedo[1], 1, 1);
    }
   

Imagini / Video (optional): --
Ati incercat sa rezolvati singur?: am schimbat veh in vehicleid si tot nu merge

 

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn

6 answers to this question

Recommended Posts

  • Administrator
Posted

La OnGameModeInit pui sa creeze textdraw-ul. Iar la OnPlayerStateChange pui sa ii modifice modelul si sa il afiseze sau sa il ascunda.

  • Upvote 1
  • Administrator
Posted

Iti face asta pentru ca jucatorul nu a fost in nici o masina, deci are ID-ul 0. Poti sa pui la la OnPlayerStateChange.

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.