how to make a car enter a place - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to make a car enter a place (
/showthread.php?tid=272532)
how to make a car enter a place -
-CaRRoT - 28.07.2011
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);
}
Re: how to make a car enter a place -
Krx17 - 28.07.2011
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);
Re: how to make a car enter a place -
-CaRRoT - 28.07.2011
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
Re: how to make a car enter a place -
-CaRRoT - 29.07.2011
"Bump" - Been full day and no answer - Guys..Really..I Need help in this