14.06.2010, 11:28
Can i check in any whay if an car has any player in it ? like an function or something , IsAnyPlayerInVehicle .
stock IsAnyPlayerInVehicle(vehicleid)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInVehicle(i, vehicleid))
{
return 1;
}
}
}
return 0;
}