Jump to content
  • 0

Ajutor urgent !


wifi123

Question

Salut SA-MP.Ro am si eu o problema cu sistemu de masini personale din gm-ul meu, am aceste linii:

[pawn] new vehicleid = GetPlayerVehicleID(playerid);

GetPlayerName(playerid, pname, sizeof pname);

    if(newstate == PLAYER_STATE_DRIVER)

{

    if(vehicleid == phoenixa)

    {

        if(strcmp(pname, "WiFi", true) ==0)

        {

            return 1;

            }

            else

            {

RemovePlayerFromVehicle(playerid);

SendClientMessage(playerid,red,"This car is Owned by WiFi.");

}

}

}[/pawn]

[pawn] phoenixa = CreateVehicle(603,-24.6473,1893.7428,17.4348,266.3062,3,3, 7200);[/pawn]

[pawn]new phoenixa;[/pawn]

Cum fac sa adaug sa apara numele ownerului in afara masini si sa adaug o comanda de teleport catre masina privata ?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

1. Pentru a face comanda de teleport la vehicul ai nevoie de coordonatele masini.

new Float:x,Float:y,Float:z;

GetVehiclePos(phoenixa, x,y,z);

SetPlayerPos(playerid, x,y,z);

I-ar pentru 3dtextlabel cred ca la asta te-ai referit:

2.Creezi un 3DText]http://wiki.sa-mp.com/wiki/Create3DTextLabel]3DText iar dupa il atasezi de vehicul cu Attach3DTextLabelToVehicle

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

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.