29.06.2016, 09:00
This should work,
pawn Код:
stock IsSeatTaken(vehicleid, seatid)
{
for(new i = GetPlayerPoolSize(); i != -1; i--)
{
if(!IsPlayerConnected(i)) continue;
if(GetPlayerVehicleID(i) == vehicleid && GetPlayerVehicleSeat(i) == seatid) return 1;
}
return 0;
}