Jump to content
  • 0

intrebare despre 3dtext la masini


Viper

Question

salut :D am gasit pe sa-mp.com/forum cum pot sa fac ca atuncea cand cineva are o masina personala sa ii apara, numele ca si 3dtext pe masina, insa am o intrebare.. unde trebe sa adaug acele linii daca imi poate spune cineva.. raman recunoscator :D

new name[MAX_PLAYER_NAME],string[128];
new Float:vehx, Float:vehy, Float:vehz;
new Text3D:vehowner;
GetPlayerName(playerid,name,sizeof(name));
GetVehiclePos(veh, vehx, vehy, vehz);
format(string, sizeof(string), "%s (%d)'s vehicle.", name, playerid);
vehowner = Create3DTextLabel( string, COLOR, vehx, vehy, vehz, 40.0, 0, 0 );
Attach3DTextLabelToVehicle( vehowner, YOURVEHICLE, 0.0, 0.0, 1.0);

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Depinde cum vrei tu sa apara deoarece poti crea doar un singur 'public' sau poti pune la Onplayerentervehicle sa apara atunci cand intri.

In general adica ca sa apara punel la OnGameModeint acel 3dtextlabel iar daca ai comanda de BUY CAR trebuie sa o setezi si acolo lafel si salvarea 3dtextlab-urului in fisierul .cfg

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.