29.01.2011, 09:02
What do i use to find out who is in a car
stock GetPlayerInCar(vehicleid)
{
for(new i = 0; i < 500; i++)
{
if(!IsPlayerConnected(i)) continue;
if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == 2)
return i;
else continue;
}
return INVALID_PLAYER_ID;
}