07.06.2010, 12:46
Quote:
Originally Posted by Joe Torran C
Hello,
How can i detect if a certain vehicle is occupied or not? |
pawn Код:
stock IsVehicleInUse(vehicleid)
{
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerVehicleID(i) == vehicleid)
return true;
}
}
return false;
}