SA-MP Forums Archive
Invisible Cars - 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: Invisible Cars (/showthread.php?tid=244077)



Invisible Cars - ToPhrESH - 26.03.2011

I have a /derby command and when I you type this command you spawn in the Blood Ring Arena.

pawn Код:
else if(derby[playerid] == 0)
        {
            new string[100];
            format(string, 100, "*~* |DM NEWS| *~* %s has joined the DERBY! ( /derby ) *~*", PNames[playerid]);
            SendClientMessageToAll(COLOR_ORANGE, string);
            ResetPlayerWeapons(playerid);
            SetPlayerVirtualWorld(playerid, 0);
            SetPlayerHealth(playerid, 100);
            SetPlayerArmour(playerid, 100);
            SetPlayerPos(playerid, -1394.20,987.62,1023.96);
            SetPlayerInterior(playerid, 15);
            AddStaticVehicle(504,-1346.5404,1019.5936,1025.4503,64.2489,52,181); // bloodbanger 1 derby
            AddStaticVehicle(504,-1374.5640,1025.4631,1025.4668,90.6315,53,182); // bloodbanger 2 derby
            AddStaticVehicle(504,-1414.4521,1025.4773,1025.4885,92.3567,54,183); // bloodbanger 3 derby
            AddStaticVehicle(504,-1451.2241,1017.1113,1025.4205,123.0640,55,184); // bloodbanger 4 derby
            AddStaticVehicle(504,-1465.9125,991.0632,1025.0702,203.7011,56,185); // bloodbanger 5 derby
            AddStaticVehicle(504,-1425.4297,966.5362,1024.4851,270.5736,57,186); // bloodbanger 6 derby
            AddStaticVehicle(504,-1356.8181,969.9455,1024.3973,291.1680,58,151); // bloodbanger 7 derby
            AddStaticVehicle(504,-1334.7496,985.5202,1024.6338,337.4073,59,0); // bloodbanger 8 derby
            derby[playerid] = 1;
            return 1;
        }
So the cars are invisible (unseen). Is there a command I can make, to make them show up, or how do I script them to become visible?


Re: Invisible Cars - randomkid88 - 26.03.2011

The vehicle is not setting to the same interior as the player, so use
pawn Код:
LinkVehicleToInterior(vehicle, interior);



Re: Invisible Cars - TheYoungCapone - 26.03.2011

Код:
new bloodbanger1;
Under Ongamemodeinit

Код:
bloodbanger1 = AddStaticVehicle(504,-1346.5404,1019.5936,1025.4503,64.2489,52,181); // bloodbanger 1 derby
Код:
LinkVehicleToInterior(bloodbanger1, 15);



Re: Invisible Cars - ToPhrESH - 26.03.2011

Thanks