is there any script like this...? - 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)
+--- Thread: is there any script like this...? (
/showthread.php?tid=282861)
is there any script like this...? -
Ecstacy - 12.09.2011
heyguys...im looking for a filter script that i can save vehicle position on the game...is there any script like that?
Re: is there any script like this...? -
Allan Kardec - 12.09.2011
Try.
pawn Код:
new
cModel,
Float:cX,
Float:cY,
Float:cZ,
Float:cA,
cO,
cT
;
pawn Код:
if(strcmp("/park", cmdtext, true) == 0)
{
new Float:P[3], Float:A;
new carid;
if(IsPlayerInVehicle(playerid, carid))
{
new getcarid = GetPlayerVehicleID(playerid);
GetVehiclePos(carid, P[0], P[1], P[2]);
GetVehicleZAngle(carid, A);
if(getcarid == carid)
{
cX = P[0];
cY= P[1];
cZ = P[2];
cA = A;
GameTextForPlayer(playerid, "~n~~p~Parked Car", 5000, 3);
DestroyVehicle(carid);
CreateVehicle(cM, cX, cY, cZ+1.0, cA, cO, cT, -1);
// SetPlayerPos(playerid, P[0], P[1], P[2]+2.0); [Optional]
TogglePlayerControllable(playerid, 1);
}
}
return 1;
}
Re: is there any script like this...? -
=WoR=Bruno - 12.09.2011
i think he want something like this
https://sampforum.blast.hk/showthread.php?tid=21938
Re: is there any script like this...? -
Ecstacy - 13.09.2011
thanks bruno but is coord saver...i want vehicle saver... if its for vehicles too, do you know how to use it?