is there any script like this...?
#1

heyguys...im looking for a filter script that i can save vehicle position on the game...is there any script like that?
Reply
#2

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;
}
Reply
#3

i think he want something like this https://sampforum.blast.hk/showthread.php?tid=21938
Reply
#4

thanks bruno but is coord saver...i want vehicle saver... if its for vehicles too, do you know how to use it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)