Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Recommended Posts

Posted

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

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.