22.12.2010, 13:06
pawn Код:
public VehicleHasDriver(vehicleid)
{
for(new i=0;i<=MAX_PLAYERS;i++)
{
if(IsPlayerInAnyVehicle(i))
{
if(GetPlayerVehicleID(i)==vehicleid)
{
if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
return 1;
}
}
}
}
return 0;
}