Simple question
#1

How do i check if a car is spawned?

I looked for a function and well... couldnt find it.
Reply
#2

I dunno but what is IsVehicleStreamedIn ?
Reply
#3

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

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
Reply
#5

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
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)