This function was added in SA-MP 0.3a and will not work in earlier versions!
(vehicleid, forplayerid)
vehicleid
The ID of the vehicle to check.
forplayerid
The ID of the player to check.
new streamedVehicleCount;
for(new v = 1; v <= MAX_VEHICLES; v++)
{
if(IsVehicleStreamedIn(v, playerid))
{
streamedVehicleCount++;
}
}
new szString[144];
format(szString, sizeof(szString), "You currently have %i vehicles streamed in to your game.", streamedVehicleCount);
SendClientMessage(playerid, -1, szString);
The following functions may be useful, as they are related to this function in one way or another.
The following callbacks might be useful, as they're related to this function in one way or another.