04.01.2018, 18:20
Hi guys i have a very strange thing going on like player enters car A clicks on a dialog which creates car B and transfers the player to car B.
Well what happens is basicly the same as in the vid below where it creates a second vehicle the player controls (car B)
however it shows the player in car A and it has a weird control over it aswell yet not as normal as car B.
Video: https://www.youtube.com/watch?v=mj_PBytelF8
Here is the part of my script where car B gets created and the player get transferred.
Well what happens is basicly the same as in the vid below where it creates a second vehicle the player controls (car B)
however it shows the player in car A and it has a weird control over it aswell yet not as normal as car B.
Video: https://www.youtube.com/watch?v=mj_PBytelF8
Here is the part of my script where car B gets created and the player get transferred.
Код:
if(response) { if(Iter_Count(OwnedCar<playerid>) < GetPlayerVipSlots(playerid)) { new model = GetVehicleModel(veh); new did = GetDealerID(veh); SetVehicleToRespawn(TMPDealerVehID[playerid]); RemovePlayerFromVehicle(playerid); TMPDealerVeh[playerid] = CreateVehicle(model, DealerInfo[did][DPosX], c DealerInfo[did][DPosY], DealerInfo[did][DPosZ], 0, 1, 1, -1, 0); SetVehicleToRespawn(TMPDealerVeh[playerid]); SetVehicleParamsEx(TMPDealerVeh[playerid], 1, 0, 0, 0, 0, 0, 0); PutPlayerInVehicle(playerid, TMPDealerVeh[playerid], 0); SCM(playerid, COLOR_LIGHTRED, "Dealer says: You have 1 minute to test the vehicle. After that we will have a chat on where to take it from there !"); SetTimerEx("DealerRevokeVeh", 60000, false, "d", playerid); new zstring[128]; CountdownPSeconds[playerid] = 60; CountdownPTimer[playerid] = SetTimerEx("PCountDown", 1000, true, "d", playerid); TextDrawShowForPlayer(playerid, CountdownPTD); format(zstring, sizeof(zstring),"~p~Countdown: ~w~60"); TextDrawSetString(CountdownPTD, zstring); } else { SCM(playerid, COLOR_GRAD1, "You already have the maximum of vehicles !"); RemovePlayerFromVehicle(playerid); return true; } }