TheGodfather Posted December 9, 2020 Posted December 9, 2020 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;} }
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now