how to make a car enter a place
#1

well.. I Made that Garage and it's working fine but when you /enter at it you only Get TP'ed without the car - i want the cars also can enter it , any help please ?


pawn Код:
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1815.5923, -1559.0122, 13.50177)) // v.i.p Garage
            {
            if(PlayerInfo[playerid][pDonateRank] < 1) return SendClientMessage(playerid,COLOR_RED,"You're not VIP.");
                GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
                Pause(playerid);
                SetPlayerInterior(playerid, 0);
                SetPlayerPos(playerid, 2483.8914,2377.5178,7.5434);
                GameTextForPlayer(playerid, "~b~ V.I.P Garage", 3000, 1);
            }
Reply
#2

Use this but don't just copy and paste it. Actually look through it to see what it does.
pawn Код:
new vehicle = GetPlayerVehicleID(playerid);
SetVehiclePos(playerid, 2483.8914, 2377.5178, 7.5434);
PutPlayerInVehicle(playerid, vehicle, 0);
Reply
#3

that don't work...it do like.. freeze the player for second and unfreeze him , like you got ReSpwaned at your place + if you on foot , it works , if in car - you jut get Respawn in your place and don't Enter



EDIT : Now i did it like this..



pawn Код:
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1815.5923, -1559.0122, 13.50177)) // v.i.p Garage
            {
                if(PlayerInfo[playerid][pDonateRank] < 1) return SendClientMessage(playerid,COLOR_RED,"You're not VIP.");
                GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
                Pause(playerid);
                new vehicle = GetPlayerVehicleID(playerid);
                SetVehiclePos(playerid, 2483.8914, 2377.5178, 7.5434);
                PutPlayerInVehicle(playerid, vehicle, 0);
                SetPlayerInterior(playerid, 0);
                SetPlayerPos(playerid, 2483.8914,2377.5178,7.5434);
                GameTextForPlayer(playerid, "~b~ V.I.P Garage", 3000, 1);
            }
But the Vehicle DOn't TP , only the person in the car
Reply
#4

"Bump" - Been full day and no answer - Guys..Really..I Need help in this
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)