SA-MP Forums Archive
Simple question - 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: Simple question (/showthread.php?tid=305331)



Simple question - Rokzlive - 22.12.2011

How do i check if a car is spawned?

I looked for a function and well... couldnt find it.


Re: Simple question - Definition - 22.12.2011

I dunno but what is IsVehicleStreamedIn ?


Re: Simple question - Rokzlive - 22.12.2011

That involves playerid and some crap, so its not what i need.


Re: Simple question - Steven82 - 22.12.2011

Read THIS topic. No it's not a search link or anything in that nature. It is an actual topic. I don't know if this is what your looking for, but i needed something similar to this today and remembered a topic from yesterday that i was having a little discussion on. Check it out. Hope it helps.

- Steven


Re: Simple question - FarSe. - 22.12.2011

if(GetVehicleModel(vehid) > 0) //vehicle isn't spawned
or
new Float:Pos;GetVehiclePos(vehid,Pos,Pos,Pos);
if(Pos == 0.00) //vehicle isn't spawned


Re: Simple question - Tee - 22.12.2011

pawn Код:
stock IsVehicleConnected(vehicleid)
{
    new Float:x, Float:y, Float:z;
    GetVehiclePos(vehicleid, x, y, z);
    if(x == 0.0 && y == 0.0 && z == 0.0)return 0;
    return 1;
}