24.07.2009, 10:48
Alternatively, dump it in a stock.
Example:
if(IsListedCar(CarID)) //player is in a listed car
if(!IsListedCar(CarID)) //Player isn't in a listed car
NOTE: You need to save the vehicle ID, as yezizhu showed.
pawn Код:
stock IsListedCar(vehicleid)
{
for(new i,j=sizeof(CopCars); i<j; i++)
{
if(CopCars[i][Vecid] == vehicleid) return 1;
}
return 0;
}
if(IsListedCar(CarID)) //player is in a listed car
if(!IsListedCar(CarID)) //Player isn't in a listed car
NOTE: You need to save the vehicle ID, as yezizhu showed.