IsVehicleOccupied
ronixtey opened this issue · 1 comments
ronixtey commented
stock IsVehicleOccupied(vehicleid)
{
if (IsValidVehicle(vehicleid)) {
#if defined _TDW_VH_DETECT_FOREACH
foreach (new i: Vehicle) // Цикл идет по тачкам, а не по игрокам
#else
for (new i = TDW_FOREACH_MAX_VEHICLES; --i != 0;)
#endif
{
if (0 != IsPlayerInVehicle(i, vehicleid))
return 1;
}
}
return 0;
}