Jump to content

Question

Posted

Nu stiu de ce a fost sters topicul vechi!

Am pb cu comanda /park pt masinile personale!

 else if (strcmp("/park", cmd, true, 10) == 0)
    {
        if (IsPlayerInVehicle(playerid,Carlist[playerid][Carid]))
        {
            GetVehiclePos(Carlist[playerid][Carid],Carlist[playerid][X],Carlist[playerid][Y],Carlist[playerid][Z]);
            GetVehicleZAngle(Carlist[playerid][Carid],Carlist[playerid][Rotation]);
            SendClientMessage(playerid, COLOR_GREEN, "Saved car position!");
        }
        else { SendClientMessage(playerid, COLOR_GREY, "That is not your car!"); }
        return 1;
    }

3 answers to this question

Recommended Posts

Posted

a mai postat odata...ziice ca problema e cand da /park ...opreste serverul si cand il porneste iar nu sa salvat masina la locul respecitv.

if (strcmp("/park", cmd, true, 10) == 0)

    {

        if (IsPlayerInVehicle(playerid,Carlist[playerid][Carid]))

        {

            GetVehiclePos(Carid, x, y, z);

            GetVehicleZAngle(carid, a);

            Carlist[Carid][cLocationx] = x;

            Carlist[Carid][cLocationy] = y;

            Carlist[Carid][cLocationz] = z;

            Carlist[Carid][cAngle] = a;

            SendClientMessage(playerid, COLOR_GREEN, "Saved car position!");

        }

        else { SendClientMessage(playerid, COLOR_GREY, "That is not your car!"); }

        return 1;

    }

Incearca

Daca ti-am fost de ajutor +1 Respect!Multumesc

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.