07.06.2010, 11:27
pawn Код:
stock IsVehicleInUse(vehicleid)
{
new IsTrue=0;
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInAnyVehicle(i))
{
if(GetPlayerVehicleID(i) == vehicleid) IsTrue=1;
}
}
}
return IsTrue;
}