Jump to content
  • 0

Nume sub masina!!


ToX1c

Question

Salut cum fac si eu sa scrie numele celui care are masina pers sub masina?

if(GetPlayerVehicleID(playerid) == Ryan)
		{
            new sendername[MAX_PLAYER_NAME];
            GetPlayerName(playerid, sendername, sizeof(sendername));
            if(strcmp(sendername,"Ryan",true))
            {
                SendClientMessage(playerid,0xFFA8C7FF,"Imi pare rau , Aceasta masina este a lui Ryan");
                RemovePlayerFromVehicle(playerid);
			}
		 }

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

In primul rand trebuie sa creezi un 3dtext label


//Undeva pe la inceputul scriptului:

new Text3D: Masina;

//La OnGameModeInIt dupa ce ai creat acea masina:

Masina = Create3DTextLabel( "Mesaj", culoare, x, y, z);

Attach3DTextLabelToVehicle( Masina, idmasina , x2, y2, z2);


Nu prea conteaza unde creezi acest 3dtextlabel deoarece oricum il atasezi unei masini!

Acele x2, y2, z2 sunt folosite pentru coordonatele textului pe masina.. adica sa apara mai sus mai jos mai in stanga mai in dreapta etc. Daca nu ai inteles ceva imi spui

Link to comment
Share on other sites

Mane eu Vrea sa fac dupa nume..

cam asa ceva..

new Text3D: Ryan;
//La OnGameModeInIt dupa ce ai creat acea masina:
Ryan = Create3DTextLabel( "Mesaj", culoare, x, y, z);
Attach3DTextLabelToVehicle( Ryan, idmasina , x2, y2, z2);

Da nu merge!!!

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.