Jump to content
  • 0

Ajutor 3dtextlabel pe masina


wifi123

Question

Salut , stiti cumva cum pot adauga 3dtextlabel pe o masina ? Am incercat eu cu mai multe metode si nu am reusit

[pawn] if(GetPlayerVehicleID(playerid) == Wifi123)

{

    new sendername[MAX_PLAYER_NAME];

    GetPlayerName(playerid, sendername, sizeof(sendername));

    if(strcmp(sendername,"Wifi123",true))

    {

        GameTextForPlayer(playerid, "~r~C~w~ar~r~O~w~ner: ~b~Wifi123", 3000, 4);

        SendClientMessage(playerid,COLOR_GREY," Nu esti proprietarul acestei masini!");

        RemovePlayerFromVehicle(playerid);

    }

}[/pawn]

Vreau sa fac ca la masinile personale sa apara owneru cu 3dtextlabel , am incercat sa pun in script-ul de mai sus asta:

[pawn]CreatePlayer3DTextLabel(playerid,"~r~C~w~ar~r~O~w~ner: ~b~Wifi123", red,0.0,-1.6,-0.35,40.0,INVALID_PLAYER_ID,vehicleid,0);[/pawn]

dar nu a mers

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Nici nu te-ai dat silinta in ce ai postat tu nici nu ai folosit Attach3DTextLabelToVehicle .

Poftim :

new Text3D:vehicle3Dtext[MAX_VEHICLES],Wifi123;

Wifi123 = CreateVehicle( aici pui tu id , coordonatele etc); // Asta pui la OnGameModeInit
vehicle3Dtext[ Wifi123 ] = Create3DTextLabel( "Example Text", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ Wifi123 ] , Wifi123, 0.0, 0.0, 2.0);

Delete3DTextLabel( vehicle3Dtext[ Wifi123 ] ); // asta pui la ongamemodeexit

if(GetPlayerVehicleID(playerid) == Wifi123)
{
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    if(strcmp(sendername,"Wifi123",true))
    {
        GameTextForPlayer(playerid, "~r~C~w~ar~r~O~w~ner: ~b~Wifi123", 3000, 4);
        SendClientMessage(playerid,COLOR_GREY," Nu esti proprietarul acestei masini!");
        RemovePlayerFromVehicle(playerid);
    }
}

Link to comment
Share on other sites

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.