Jump to content

Problema atasare obiect unui vehicul


TheGodfather

Recommended Posts

Salut, am cateva obiecte pe care le iau cu tasta y si le pun pe masina, daca pun unul sau mai multe obiecte din acestea, ma urc si cobor din masina in loc sa ma dea langa usa, unde e normal ma teleporteaza aici. Nu am adaugat nimic la onplayerstatechange sau onplayerexitvehicle. Asa atasez obiectul vehicului:

if(StartQuest2[playerid] != 0 && yz[playerid] <= 9) {
            if(HaveGift2[playerid] == 1) {
                new Float: Pos[3];
                GetVehiclePos(QuestVehicle2[playerid], Pos[0], Pos[1], Pos[2]);

                if(PlayerToPoint(5, playerid, Pos[0], Pos[1], Pos[2]))
                {RemovePlayerAttachedObject(playerid, 0);
                 SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
                 quest2obj[yz[playerid]] = CreateDynamicObject(1463,VipPos2[yz[playerid]][0], VipPos2[yz[playerid]][1], VipPos2[yz[playerid]][2], 0.0, 0.0, 0.0);
                 AttachDynamicObjectToVehicle(quest2obj[yz[playerid]], QuestVehicle2[playerid], VipPos2[yz[playerid]][0], VipPos2[yz[playerid]][1], VipPos2[yz[playerid]][2], 0.0, 0.0, 0.0);
                 yz[playerid] = yz[playerid] + 1;
                 HaveGift2[playerid] = -1;}
            }

image.thumb.png.aa406cf39879b7e2e327da31e4f02cbf.png

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.